ServletContext
The ServletContext object is a straight reflection from the Servlet interface. The JSP application object is a ServletContext 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.
ServletContext | Resin 1.0
### getAttribute(name)
Returns the value corresponding to name. Applications can use the attributes to store arbitrary data.
### getAttributeNames()
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.
### 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. This is the preferred way to log errors.
Copyright © 1998-2000 Caucho Technology. All rights reserved. Last modified: Fri, 31 Mar 2000 18:55:29 -0800 (PST)