如何查看服务器使用的EL版本.我正在运行Websphere 7.EL类在j2ee.jar中,清单在下面.
Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.5
Created-By: 2.4 (IBM Corporation)
Specification-Title: Java Platform, Enterprise Edition Specification
Specification-Version: 5.0
Specification-Vendor: Sun Microsystems, Inc.
Implementation-Title: Java Platform, Enterprise Edition Specification
Implementation-Version: 5.0
Implementation-Vendor: Sun Microsystems, Inc.
Class-Path: activation-impl.jar mail-impl.jar
Run Code Online (Sandbox Code Playgroud)
Bal*_*usC 26
EL版本与Servlet/JSP版本密切相关,后者依赖于所使用的servletcontainer实现/版本以及web.xmlwebapp 的根声明.
WebSphere 7是一个经过Java EE 5认证的容器,因此它意味着Servlet 2.5,因此Servlet 2.5随后带有JSP/EL 2.1.但是,如果web.xml您的webapp声明符合例如Servlet 2.4,那么您的webapp将使用JSP/EL 2.0以Servlet 2.4模式运行.
既然你标记了这个JSF,我想这个问题的唯一目的是弄清楚你是否可以使用新的EL 2.2特性,能够在EL中调用带有参数的非getter方法.因此,容器本身不支持.但是,您可以根据此答案安装JBoss EL,以使其在Servlet 2.5容器上运行.