Class PageScopeContext
java.lang.Object
org.apache.commons.jxpath.servlet.PageScopeContext
A lightweight wrapper for
PageContext
that restricts access
to attributes of the "page" scope. This object is needed so that
XPath "foo" would lookup the attribute "foo" in all scopes, while
"$page/foo" would only look in the "page" scope.- Version:
- $Revision: 652845 $ $Date: 2008-05-02 12:46:46 -0500 (Fri, 02 May 2008) $
- Author:
- Dmitri Plotnikov
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPageScopeContext
(javax.servlet.jsp.PageContext pageContext) Create a new PageScopeContext. -
Method Summary
Modifier and TypeMethodDescriptiongetAttribute
(String attribute) Get the value of the specified attribute.Returns attributes of the pageContext declared in the "page" scope.void
setAttribute
(String attribute, Object value) Set the specified attribute.
-
Field Details
-
pageContext
private javax.servlet.jsp.PageContext pageContext
-
-
Constructor Details
-
PageScopeContext
public PageScopeContext(javax.servlet.jsp.PageContext pageContext) Create a new PageScopeContext.- Parameters:
pageContext
- base
-
-
Method Details
-
getAttributeNames
Returns attributes of the pageContext declared in the "page" scope.- Returns:
- Enumeration of attribute names
-
getAttribute
Get the value of the specified attribute.- Parameters:
attribute
- name- Returns:
- Object
-
setAttribute
Set the specified attribute.- Parameters:
attribute
- to setvalue
- to set
-