caucho
 


The ServletContext object is a straight reflection from the Servlet interface.

The JSP application object is a ServletContext object.

Index
getAttribute(name)
getAttributeNames()
log(msg [, exception])
majorVersion
minorVersion
removeAttribute(name)
serverInfo
setAttribute(name, value)

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-2002 Caucho Technology, Inc. All rights reserved.
Resin® is a registered trademark, and HardCoretm and Quercustm are trademarks of Caucho Technology, Inc.