This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Struts and the fly likes struts and jstl both Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Bookmark "struts and jstl both" Watch "struts and jstl both" New topic
Author

struts and jstl both

dhriti joshi
Ranch Hand

Joined: Aug 13, 2002
Posts: 82
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
Bartender

Joined: Feb 26, 2001
Posts: 6267
    
  15

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.


Junilu - [How to Ask Questions] [How to Answer Questions]
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: struts and jstl both
 
It's not a secret anymore!