FileDocCategorySizeDatePackage
VariableResolverImpl.javaAPI DocGlassfish v2 API3388Fri May 04 22:32:54 BST 2007org.apache.jasper.runtime

VariableResolverImpl

public class VariableResolverImpl extends Object implements javax.servlet.jsp.el.VariableResolver

This is the implementation of VariableResolver in JSP 2.0, using ELResolver in JSP2.1. It looks up variable references in the PageContext, and also recognizes references to implicit objects.

author
Kin-man Chung
version
$Change: 181177 $$DateTime: 2001/06/26 08:45:09 $$Author: tcfujii $

Fields Summary
private javax.servlet.jsp.PageContext
pageContext
Constructors Summary
public VariableResolverImpl(javax.servlet.jsp.PageContext pageContext)
Constructor

        this.pageContext = pageContext;
    
Methods Summary
public java.lang.ObjectresolveVariable(java.lang.String pName)
Resolves the specified variable within the given context. Returns null if the variable is not found.


        ELContext elContext = pageContext.getELContext();
        ELResolver elResolver = elContext.getELResolver();
        try {
            return elResolver.getValue(elContext, null, pName);
        } catch (javax.el.ELException ex) {
            throw new javax.servlet.jsp.el.ELException();
        }