@SuppressWarnings("rawtypes") protected Object doEvaluate(String expression, Class expectedType, javax.servlet.jsp.el.FunctionMapper functionMapper) throws javax.servlet.jsp.el.ELException { try { return ExpressionEvaluatorManager.evaluate("JSP EL expression", expression, expectedType, this.pageContext); } catch (JspException ex) { throw new javax.servlet.jsp.el.ELException("Parsing of JSP EL expression \"" + expression + "\" failed", ex); } }
@SuppressWarnings("rawtypes") protected Object doEvaluate(String expression, Class expectedType, javax.servlet.jsp.el.FunctionMapper functionMapper) throws javax.servlet.jsp.el.ELException { try { return ExpressionEvaluatorManager.evaluate("JSP EL expression", expression, expectedType, this.pageContext); } catch (JspException ex) { throw new javax.servlet.jsp.el.ELException("Parsing of JSP EL expression \"" + expression + "\" failed", ex); } }
public static ELException create(Throwable e) { if (e instanceof ELException) return (ELException) e; else return new ELException(e); } }
public Object evaluate(String expression, Class expectedType, VariableResolver resolver, FunctionMapper mapper) throws ELException { Object object = expressions.get(expression); if(null == object) { throw new ELException("No object for expression " + expression + " defined."); } if(!object.getClass().equals(expectedType)) { throw new ELException("Expected type " + expectedType + " for expression " + expression + " but actual type is " + object.getClass()); } return object; }
@SuppressWarnings("rawtypes") protected Object doEvaluate(String expression, Class expectedType, javax.servlet.jsp.el.FunctionMapper functionMapper) throws javax.servlet.jsp.el.ELException { try { return ExpressionEvaluatorManager.evaluate("JSP EL expression", expression, expectedType, this.pageContext); } catch (JspException ex) { throw new javax.servlet.jsp.el.ELException("Parsing of JSP EL expression \"" + expression + "\" failed", ex); } }
/** * Resolve a variable name. Used by the EL evaluator implemenation. <p> * * @param name variable name. * @return the variable value. * @throws ELException thrown if the variable is not defined in the context. */ public Object resolveVariable(String name) throws ELException { if (!vars.containsKey(name)) { throw new ELException(XLog.format("variable [{0}] cannot be resolved", name)); } return vars.get(name); }
@SuppressWarnings("rawtypes") protected Object doEvaluate(String expression, Class expectedType, javax.servlet.jsp.el.FunctionMapper functionMapper) throws javax.servlet.jsp.el.ELException { if (functionMapper != null) { throw new IllegalArgumentException("Custom FunctionMapper not supported"); } try { return ExpressionEvaluatorManager.evaluate("JSP EL expression", expression, expectedType, this.pageContext); } catch (JspException ex) { throw new javax.servlet.jsp.el.ELException("Parsing of JSP EL expression \"" + expression + "\" failed", ex); } }
/** * Resolve a variable name. Used by the EL evaluator implemenation. <p> * * @param name variable name. * @return the variable value. * @throws ELException thrown if the variable is not defined in the context. */ public Object resolveVariable(String name) throws ELException { if (!vars.containsKey(name)) { throw new ELException(XLog.format("variable [{0}] cannot be resolved", name)); } return vars.get(name); }
/** * Resolves the specified variable within the given context. * Returns null if the variable is not found. **/ public Object resolveVariable (String pName) throws javax.servlet.jsp.el.ELException { 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(); } } }
/** * Resolves the specified variable within the given context. * Returns null if the variable is not found. **/ public Object resolveVariable (String pName) throws javax.servlet.jsp.el.ELException { 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(); } } }
/** * Resolves the specified variable within the given context. * Returns null if the variable is not found. **/ public Object resolveVariable (String pName) throws javax.servlet.jsp.el.ELException { 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(); } } }
/** * Resolves the specified variable within the given context. * Returns null if the variable is not found. **/ public Object resolveVariable (String pName) throws javax.servlet.jsp.el.ELException { 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(); } } }
/** * Resolves the specified variable within the given context. * Returns null if the variable is not found. */ public Object resolveVariable (String pName) throws javax.servlet.jsp.el.ELException { 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(); } } }
/** * Resolves the specified variable within the given context. * Returns null if the variable is not found. **/ public Object resolveVariable (String pName) throws javax.servlet.jsp.el.ELException { 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(); } } }
/** * Resolves the specified variable within the given context. * Returns null if the variable is not found. **/ public Object resolveVariable(String pName) throws javax.servlet.jsp.el.ELException { 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(); } } }
/** * Resolves the specified variable within the given context. * Returns null if the variable is not found. **/ public Object resolveVariable (String pName) throws javax.servlet.jsp.el.ELException { 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(); } } }
public Object evaluate(VariableResolver vResolver) throws ELException { ELContext elContext; if (vResolver instanceof VariableResolverImpl) { elContext = pageContext.getELContext(); } else { // The provided variable Resolver is a custom resolver, // wrap it with a ELResolver elContext = new ELContextImpl(new ELResolverWrapper(vResolver)); } try { return valueExpr.getValue(elContext); } catch (javax.el.ELException ex) { throw new ELException(ex); } } }
public Object evaluate(VariableResolver vResolver) throws ELException { ELContext elContext; if (vResolver instanceof VariableResolverImpl) { elContext = pageContext.getELContext(); } else { // The provided variable Resolver is a custom resolver, // wrap it with a ELResolver elContext = new ELContextImpl(new ELResolverWrapper(vResolver)); } try { return valueExpr.getValue(elContext); } catch (javax.el.ELException ex) { throw new ELException(ex); } } }
public Object evaluate(VariableResolver vResolver) throws ELException { ELContext elContext; if (vResolver instanceof VariableResolverImpl) { elContext = pageContext.getELContext(); } else { // The provided variable Resolver is a custom resolver, // wrap it with a ELResolver elContext = new ELContextImpl(new ELResolverWrapper(vResolver)); } try { return valueExpr.getValue(elContext); } catch (javax.el.ELException ex) { throw new ELException(ex); } } }
public Object evaluate(VariableResolver vResolver) throws ELException { ELContext elContext; if (vResolver instanceof VariableResolverImpl) { elContext = pageContext.getELContext(); } else { // The provided variable Resolver is a custom resolver, // wrap it with a ELResolver elContext = new ELContextImpl(new ELResolverWrapper(vResolver)); } try { return valueExpr.getValue(elContext); } catch (javax.el.ELException ex) { throw new ELException(ex); } } }