Application (ServletContext)
|
The Application object is a straight reflection from the
ServletContext interface.
The JSP application object is an
Application object.
ServletContext
|
getAttribute(name) |
Returns the value corresponding to name. |
getAttributeNames() |
Returns an enumeration of all attribute names. |
setAttribute(name, value) |
Sets an attribute to an arbitrary value. |
removeAttribute(name) |
Removes an attribute from the context. |
majorVersion |
Returns the major version of the Servlet API. |
minorVersion |
Returns the minor version of the Servlet API. |
serverInfo |
Returns a string describing the servlet engine. |
log(msg [, exception]) |
Adds msg to the servlet engine's log file. |
Returns the value corresponding to name.
Applications can use the attributes to store arbitrary data.
Returns an enumeration of all attribute names.
List Attributes
context.attribute["foo"] = 1
context.attribute["bar"] = 2
for (var name in context.attribute) {
writeln(name + " : " + context.attribute[name]);
}
|
foo : 1
bar : 2
|
setAttribute(name, value)
|
Sets an attribute to an arbitrary value.
Removes an attribute from the context.
Returns the major version of the Servlet API.
Returns the minor version of the Servlet API.
Returns a string describing the servlet engine.
Adds msg to the servlet engine's log file. This is
the preferred way to log errors.
Copyright © 1998-2000 Caucho Technology. All rights reserved.
Last modified: Fri, 31 Mar 2000 18:49:52 -0800 (PST)
|