org.apache.commons.jxpath.servlet

Class PageScopeContext


public class PageScopeContext
extends java.lang.Object

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: 1.5 $ $Date: 2004/02/29 14:17:40 $
Author:
Dmitri Plotnikov

Constructor Summary

PageScopeContext(PageContext pageContext)

Method Summary

Object
getAttribute(String attribute)
Enumeration
getAttributeNames()
Returns attributes of the pageContext declared in the "page" scope.
void
setAttribute(String attribute, Object value)

Constructor Details

PageScopeContext

public PageScopeContext(PageContext pageContext)

Method Details

getAttribute

public Object getAttribute(String attribute)

getAttributeNames

public Enumeration getAttributeNames()
Returns attributes of the pageContext declared in the "page" scope.

setAttribute

public void setAttribute(String attribute,
                         Object value)