You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by ashish shrivastava <as...@gmail.com> on 2007/01/21 12:00:52 UTC

which one is better : jstl core tag V/s struts tags (logic)

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

RE: which one is better : jstl core tag V/s struts tags (logic)

Posted by "Karr, David" <da...@wamu.net>.
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 [mailto:newton.dave@yahoo.com] 
> 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 <as...@gmail.com>
> 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: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Re: which one is better : jstl core tag V/s struts tags (logic)

Posted by Dave Newton <ne...@yahoo.com>.
--- ashish shrivastava <as...@gmail.com>
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



 
____________________________________________________________________________________
Any questions? Get answers on any topic at www.Answers.yahoo.com.  Try it now.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org