public class PageScopeContext
extends java.lang.Object
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.Modifier and Type | Field | Description |
---|---|---|
private javax.servlet.jsp.PageContext |
pageContext |
Constructor | Description |
---|---|
PageScopeContext(javax.servlet.jsp.PageContext pageContext) |
Create a new PageScopeContext.
|
Modifier and Type | Method | Description |
---|---|---|
java.lang.Object |
getAttribute(java.lang.String attribute) |
Get the value of the specified attribute.
|
java.util.Enumeration |
getAttributeNames() |
Returns attributes of the pageContext declared in the "page" scope.
|
void |
setAttribute(java.lang.String attribute,
java.lang.Object value) |
Set the specified attribute.
|
public PageScopeContext(javax.servlet.jsp.PageContext pageContext)
pageContext
- basepublic java.util.Enumeration getAttributeNames()
public java.lang.Object getAttribute(java.lang.String attribute)
attribute
- namepublic void setAttribute(java.lang.String attribute, java.lang.Object value)
attribute
- to setvalue
- to set