Uniform Access to Multiple Scopes
These methods provide uniform access to the diverse scopes objects.  The implementation 
must use the underlying Servlet machinery corresponding to that scope, so information can 
be passed back and forth between Servlets and JSP pages.
getAttribute()
Access an attribute in the page scope, or null if not found.
getAttribute()
Overload of previous method to access an attribute in a given scope or null if 
not found.
findAttribute()
Searches for the named attribute in page, request, session (if valid) and 
application scopes in order and returns the value associated or null.
getAttributeNamesInScope()
Enumerate all the attributes in a given scope
getAttributesScope()
Get the scope where a given attribute is defined
removeAttribute()
Remove the object reference associated with the given name, look in all scopes 
in the scope order.
removeAttribute()
Overload of previous method to remove the object reference associated with 
the given name in the given scope.
setAttribute()
Register the given name and object in the page scope.
setAttribute()
Overload of previous method to register the given name and object in the given 
scope.
Access to Implicit Objects
These methods provide convenience access to implicit objects and other objects that can be 
obtained by different ways.
getOut()
The current value of the 
out
 object (a JspWriter).
getException()
The current value of the 
exception
 object (an Exception).
getPage()
The current value of the 
page
 object (a Servlet).
getRequest()
The current value of the 
request
 object (a ServletRequest).
getResponse()
The current value of the 
response
 object (a ServletResponse).
getSession()
The current value of the 
session
 object (an HttpSession).
getServletConfig()
The ServletConfig instance.
getServletContext()
The ServletContext instance.
119
JavaServer Pages 1.1 Specification  
November 30, 1999




JSP Web Hosting JavaServer Pages Specifications JSP Hosting




 
TotalRoute.net Business web hosting division of Vision Web Hosting Inc. All rights reserved.