The ServletContext object is a straight reflection from the
Servlet interface.
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]);
}
|
|
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.