Resin 1.1
FAQ
Reference
JavaDoc
Demo
Java Tutorial
Getting Started
Configuration
Topics
JSP
XTP/XSL
JavaScript
JS Library
Core Library
File Library
Servlet Library
Database Library
XML Library
PageContext
Request
Response
Session
Application
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.
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.
Session |  | Database Library
Copyright © 1998-2000 Caucho Technology. All rights reserved. Last modified: Mon, 03 Apr 2000 11:20:13 -0700 (PDT)