javax.servlet.jsp
Class JspContext

java.lang.Object
  extended by javax.servlet.jsp.JspContext
Direct Known Subclasses:
PageContext

public abstract class JspContext
extends java.lang.Object


Constructor Summary
JspContext()
           
 
Method Summary
abstract  java.lang.Object findAttribute(java.lang.String name)
          Finds an attribute in all scopes.
abstract  java.lang.Object getAttribute(java.lang.String name)
          Gets the named page attribute.
abstract  java.lang.Object getAttribute(java.lang.String name, int scope)
          Gets an attribute in a given scope.
abstract  java.util.Enumeration<java.lang.String> getAttributeNamesInScope(int scope)
          Lists attribute names in a given scope.
abstract  int getAttributesScope(java.lang.String name)
          Returns the scope for an attribute.
abstract  ELContext getELContext()
          Returns the EL context with the JspContext
abstract  ExpressionEvaluator getExpressionEvaluator()
          Returns an expression evaluator for creating JSP EL expressions.
abstract  JspWriter getOut()
          Returns the current output for the page.
abstract  VariableResolver getVariableResolver()
          Returns a variable resolver for evaluating JSP EL expressions.
 JspWriter popBody()
          Internal routine to support BodyTags.
 JspWriter pushBody(java.io.Writer writer)
          Internal routine to support BodyTags.
abstract  void removeAttribute(java.lang.String name)
          Removes the named page attribute.
abstract  void removeAttribute(java.lang.String name, int scope)
          Removes an attribute in a given scope.
abstract  void setAttribute(java.lang.String name, java.lang.Object attribute)
          Sets the named page attribute.
abstract  void setAttribute(java.lang.String name, java.lang.Object o, int scope)
          Sets an attribute in a given scope.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JspContext

public JspContext()
Method Detail

getOut

public abstract JspWriter getOut()
Returns the current output for the page.


getAttribute

public abstract java.lang.Object getAttribute(java.lang.String name)
Gets the named page attribute.

Parameters:
name - of the attribute

setAttribute

public abstract void setAttribute(java.lang.String name,
                                  java.lang.Object attribute)
Sets the named page attribute.

Parameters:
name - name of the attribute
attribute - non-null attribute value.

removeAttribute

public abstract void removeAttribute(java.lang.String name)
Removes the named page attribute.


setAttribute

public abstract void setAttribute(java.lang.String name,
                                  java.lang.Object o,
                                  int scope)
Sets an attribute in a given scope. You should use the scope-specific routines instead, like request.setAttribute.

Parameters:
name - attribute name
o - attribute value
scope - attribute scope

getAttribute

public abstract java.lang.Object getAttribute(java.lang.String name,
                                              int scope)
Gets an attribute in a given scope. You should use the scope-specific routines instead, like request.getAttribute.

Parameters:
name - attribute name
scope - attribute scope

removeAttribute

public abstract void removeAttribute(java.lang.String name,
                                     int scope)
Removes an attribute in a given scope. You should use the scope-specific routines instead, like request.removeAttribute.


getAttributeNamesInScope

public abstract java.util.Enumeration<java.lang.String> getAttributeNamesInScope(int scope)
Lists attribute names in a given scope. You should use the scope-specific routines instead, like request.getAttributeNames


getAttributesScope

public abstract int getAttributesScope(java.lang.String name)
Returns the scope for an attribute.


findAttribute

public abstract java.lang.Object findAttribute(java.lang.String name)
Finds an attribute in all scopes.


pushBody

public JspWriter pushBody(java.io.Writer writer)
Internal routine to support BodyTags.


popBody

public JspWriter popBody()
Internal routine to support BodyTags.


getExpressionEvaluator

public abstract ExpressionEvaluator getExpressionEvaluator()
Returns an expression evaluator for creating JSP EL expressions.


getVariableResolver

public abstract VariableResolver getVariableResolver()
Returns a variable resolver for evaluating JSP EL expressions.


getELContext

public abstract ELContext getELContext()
Returns the EL context with the JspContext