Examples of JspFactory


Examples of javax.servlet.jsp.JspFactory

  private class JspExpressionHelper {

    public boolean setExpressionFactory(ELAttributeEvaluator evaluator) {
      try {
        // jsp-api-2.1 doesn't default instantiate a factory for us
        JspFactory factory = JspFactory.getDefaultFactory();
        if ((factory != null) && (factory.getJspApplicationContext(servletContext).getExpressionFactory() != null)) {
          logger.info("Found JSP 2.1 ExpressionFactory");
          evaluator.setExpressionFactory(factory.getJspApplicationContext(servletContext).getExpressionFactory());
          return true;
        }
      }
      catch (Throwable ex) {
        logger.warn("Could not obtain JSP 2.1 ExpressionFactory", ex);
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.