wood burning stoves 2.0*
The moose likes Struts and the fly likes Struts EL Issue on Web Container 2.5 and JSP 2.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts EL Issue on Web Container 2.5 and JSP 2.1" Watch "Struts EL Issue on Web Container 2.5 and JSP 2.1" New topic
Author

Struts EL Issue on Web Container 2.5 and JSP 2.1

Edwin Ubongen
Greenhorn

Joined: Jul 01, 2011
Posts: 5
Hi,

I'm currently doing upgrade of our codes to the latest version. However, after migration, JSTL tags are working fine but our custom tag (struts-el) is not working anymore. The root cause is that the EL has been evaluated twice since EL is now enabled by default based on the latest version of web container and JSP.

I tried to set the web.xml with the codes below. The custom tags are working but the JSTL fails.
<jsp-property-group>
<url-pattern>*.jsp</url-pattern>
<el-ignored>true</el-ignored>
</jsp-property-group>

Question: Is there a way to resolve this issue without disabling the el evaluation of the web container so that JSTL will still work? Is it possible to migrate struts-el to regular struts?


Upgrade Details:
Web Container: From 2.3 to 2.5.
JSP: From 1.2 to 2.1.
JSTL: From 1.0.3 to 1.2.

Thanks!


Edwin
Stefan Evans
Bartender

Joined: Jul 06, 2005
Posts: 1018
All that should be necessary is to change the URI of the taglib you are using from the EL tag library to the standard tag library distributed with struts.
This should just involve deleting "-el" from the end of the uri
For example:


No other changes should be necessary.
 
GeeCON Prague 2014
 
subject: Struts EL Issue on Web Container 2.5 and JSP 2.1