struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Karr, David" <>
Subject RE: which one is better : jstl core tag V/s struts tags (logic)
Date Sun, 21 Jan 2007 18:31:29 GMT
To add to that, if you're using a JSP 1.2 container (I would hope this
is less likely by now), you should probably use the Struts-EL tag
library instead of the base Struts tag library (although you still need
both strutsel.jar and struts.jar).  This will allow you to use the EL in
Struts tags.  On the other hand, if you're using a JSP 2.0 container
(and you correctly use the Servlet 2.4 schema, not DTD), then you should
NOT use Struts-EL, as JSP 2.0 allows the EL in all attributes natively.

> -----Original Message-----
> From: Dave Newton [] 
> Sent: Sunday, January 21, 2007 4:26 AM
> To: Struts Users Mailing List
> Subject: Re: which one is better : jstl core tag V/s struts 
> tags (logic)
> --- ashish shrivastava <>
> wrote:
> > I have jsp's that uses jstl core tags to iterate through beans and 
> > display the values in html; i am converting my application 
> to struts.
> > should i also replace the jstl core tags with struts:logic tags
> Short answer: nope.
> Longer answer: the general consensus seems to be that if a 
> JSTL tag exists with the same functionality as a Struts tag 
> to use JSTL. They're more standard, better maintained, etc. 
> The notable exceptions would be the html-, bean-, and 
> message-related tags, although there may be a few other ones as well.
> Dave

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message