1 25 26 package org.apache.jasper.runtime; 27 28 import javax.el.ELContext; 29 import javax.el.ELResolver; 30 import javax.servlet.jsp.PageContext ; 31 import javax.servlet.jsp.el.VariableResolver ; 32 33 34 43 44 public class VariableResolverImpl 45 implements VariableResolver 46 { 47 private PageContext pageContext; 48 49 53 public VariableResolverImpl (PageContext pageContext) { 54 this.pageContext = pageContext; 55 } 56 57 62 public Object resolveVariable (String pName) 63 throws javax.servlet.jsp.el.ELException { 64 65 ELContext elContext = pageContext.getELContext(); 66 ELResolver elResolver = elContext.getELResolver(); 67 try { 68 return elResolver.getValue(elContext, null, pName); 69 } catch (javax.el.ELException ex) { 70 throw new javax.servlet.jsp.el.ELException (); 71 } 72 } 73 } 74 | Popular Tags |