ServletContext The ServletContext object is a straight reflection from the Servlet interface. The JSP application object is a ServletContext object. Returns the value corresponding to . Applications can use the attributes to store arbitrary data. Returns an enumeration of all attribute names. context.attribute["foo"] = 1 context.attribute["bar"] = 2 for (var name in context.attribute) { writeln(name + " : " + context.attribute[name]); } foo : 1 bar : 2 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 to the servlet engine's log file. This is the preferred way to log errors.