This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

struts and jstl both  RSS feed

 
dhriti joshi
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

i came across an application that uses struts as well as jstl.
both the technologies have many overlapping functionalities,then is that any logic to use both of them together.

thanks.
 
Junilu Lacar
Sheriff
Posts: 10878
158
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is nothing inherently "wrong" with using Struts and JSTL tags in the same JSP. They are, after all, just custom tags. However, the Struts documentation recommends using JSTL in favor of any Struts-specific tags that overlap JSTL tag functionality. This includes most of the logic and bean tags. For example, you should favor c:forEach over logic:iterate and cut or EL in favor of bean:write. On the other hand, the html tags have no JSTL equivalent.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!