Using EL 2.2 with Tomcat 6.0.24

前端 未结 4 2016
慢半拍i
慢半拍i 2020-12-05 03:13

With JSF 2 you should be able to do this:


which would then call the act

4条回答
  •  感情败类
    2020-12-05 04:03

    As mentioned in other answers, you need to add the el-api-2.2.jar to your Tomcat server's lib folder, and the el-impl-2.2.jar to your WEB-INF/lib folder.

    Other answers mention deleting jasper or creating custom implementations of ExpressionFactoryImpl. That might work, but you shouldn't need to do that.

    You just need to override the expression factory implementation using org.apache.myfaces.EXPRESSION_FACTORY on MyFaces or com.sun.faces.expressionFactory on Mojarra.

    
        org.apache.myfaces.EXPRESSION_FACTORY
        com.sun.el.ExpressionFactoryImpl
    
      
        com.sun.faces.expressionFactory
        com.sun.el.ExpressionFactoryImpl
      
    

提交回复
热议问题