Examples of FunctionMapperImpl


Examples of org.apache.struts2.jasper.el.FunctionMapperImpl

        retValue = AccessController
            .doPrivileged(new PrivilegedExceptionAction() {

              public Object run() throws Exception {
                                ELContextImpl ctx = (ELContextImpl) pageContext.getELContext();
                                ctx.setFunctionMapper(new FunctionMapperImpl(functionMap));
                ValueExpression ve = exprFactory.createValueExpression(ctx, expression, expectedType);
                                return ve.getValue(ctx);
              }
            });
      } catch (PrivilegedActionException ex) {
        Exception realEx = ex.getException();
        if (realEx instanceof ELException) {
          throw (ELException) realEx;
        } else {
          throw new ELException(realEx);
        }
      }
    } else {
            ELContextImpl ctx = (ELContextImpl) pageContext.getELContext();
            ctx.setFunctionMapper(new FunctionMapperImpl(functionMap));
            ValueExpression ve = exprFactory.createValueExpression(ctx, expression, expectedType);
            retValue = ve.getValue(ctx);
    }
    if (escape && retValue != null) {
      retValue = XmlEscape(retValue.toString());
View Full Code Here

Examples of org.jboss.el.lang.FunctionMapperImpl

    resolver.add(new BeanELResolver());
    return resolver;
  }

  public static ELContext createELContext(Object base) {
    return createELContext(createELResolver(base), new FunctionMapperImpl());
  }
View Full Code Here

Examples of org.jboss.el.lang.FunctionMapperImpl

      resolver.add( new BeanELResolver() );
      return resolver;
   }

   public static ELContext createELContext() {
       return createELContext( EL_RESOLVER, new FunctionMapperImpl() );
   }
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.