Java EE – upgrade JBoss 5.1 from El 2.1 to El 2.2?

The problem is quick and simple

JBoss 5.1 is out of the box and supports JSP, EL (expression language) 2.1 and servlet 2.5

Can I upgrade or crack it to use El 2.2?

to update:

I tried balusc's answer and got the following error:

I'm not sure what this means or how to solve it Why do you think JSP version is lower than 2.1?

Solution

No, it's trivial to replace lib, but you have to redeclare the web XML conforms to servlet 3.0 to make it work This will not be recognized by JBoss 5.1 (this is a servlet 2.5 impl) and will not replace all its libraries with those in JBoss 6.0 (this is a servlet 3.0 impl) It will be easier to upgrade the whole content to JBoss 6.0

I know you are using JSF 2.0 (when viewing old problem tags) If the only functional requirement is to support bean operation method calls using JSF with possible parameters in El 2.2, the best way is to delete the copy of JBoss El jar file in / WEB-INF / lib of your webapp and add the following context. Assuming you are using mojarra, please refer to your webapp's web xml.

<context-param>     
    <param-name>com.sun.faces.expressionFactory</param-name>
    <param-value>org.jboss.el.ExpressionFactoryImpl</param-value>   
</context-param>

No, it is impossible to configure it at the JBoss level You really have to do this at the webapp level More information about JBoss EL (it calls the initiator of the method with parameters in EL), check chapter 34 of the Seam documentation.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>