Package javax.servlet.jsp.el

Examples of javax.servlet.jsp.el.Expression.evaluate()


  public boolean isRelaxed(VariableResolver resolver) {
    Expression expr = inputConfig.getParsedRelaxExpression();
    if (expr != null) {
      Object result = null;
      try {
        result = expr.evaluate(resolver);
      } catch (Exception e) {
        log.error("Evaluation error in '" + inputConfig.getRelax() + "'", e);
        return false;
      }
      if (result instanceof Boolean) {
View Full Code Here


  public boolean isIgnored(VariableResolver resolver) {
    Expression expr = inputConfig.getParsedIgnoreExpression();
    if (expr != null) {
      Object result = null;
      try {
        result = expr.evaluate(resolver);
      } catch (Exception e) {
        log.error("Evaluation error in '" + inputConfig.getIgnore() + "'", e);
        return false;
      }
      if (result instanceof Boolean) {
View Full Code Here

                         FunctionMapper funMapper)
    throws javax.servlet.jsp.el.ELException
  {
    Expression expr = parseExpression(expression, expectedType, funMapper);
     
    return expr.evaluate(resolver);
  }

  /**
   * Parses an expression.
   */
 
View Full Code Here

          Expression expr = (Expression) expressionCache.get(cacheKey);
          if (expr == null) {
            expr = pageContext.getExpressionEvaluator().parseExpression(attrValue, resultClass, null);
            expressionCache.put(cacheKey, expr);
          }
          return expr.evaluate(pageContext.getVariableResolver());
        }
        else {
          // We're simply calling the JSP 2.0 evaluate method straight away.
          return pageContext.getExpressionEvaluator().evaluate(
              attrValue, resultClass, pageContext.getVariableResolver(), null);
View Full Code Here

        for (Object value : values) {
            // And then if we have an expression to use
            if (expr != null) {
                try {
                    resolver.setCurrentValue(value);
                    Boolean result = (Boolean) expr.evaluate(resolver);
                    if (!Boolean.TRUE.equals(result)) {
                        ValidationError error = new ScopedLocalizableError(ERROR_DEFAULT_SCOPE,
                                                                           ERROR_KEY);
                        error.setFieldValue(String.valueOf(value));
                        errors.add(name.getName(), error);
View Full Code Here

        for (Object value : values) {
            // And then if we have an expression to use
            if (expr != null) {
                try {
                    resolver.setCurrentValue(value);
                    Boolean result = (Boolean) expr.evaluate(resolver);
                    if (!Boolean.TRUE.equals(result)) {
                        ValidationError error = new ScopedLocalizableError(ERROR_DEFAULT_SCOPE,
                                                                           ERROR_KEY);
                        error.setFieldValue(String.valueOf(value));
                        errors.add(name.getName(), error);
View Full Code Here

       FunctionMapper funMapper)
    throws javax.servlet.jsp.el.ELException
  {
    Expression expr = parseExpression(expression, expectedType, funMapper);
     
    return expr.evaluate(resolver);
  }

  /**
   * Parses an expression.
   */
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.