Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts EL Issue on Web Container 2.5 and JSP 2.1

 
Edwin Ubongen
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Stefan Evans
Bartender
Posts: 1717
10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic