You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Nathan Coast <na...@codeczar.com> on 2003/06/03 05:36:49 UTC

struts tags vs jstl

Hi,

I've used struts for a while now and figured I should probably look at 
the jstl.  Theres certainly plenty of common ground to do with 
programatic control (decisions and looping) and with 
internationalisation.  I'm not sure sql tags in jsp are particularly 
bright idea but anyway....

Does anyone have any thoughts on which bits are best to use from each of 
the taglibs?  Also, is there any plan to make the struts tags support 
the definition of the corresponding jstl tags?  The idea being that 
you'd only have to learn one syntax to use both taglibs, whilst using 
the struts tags would give you all the additional funcionality that 
comes with struts.

cheers
Nathan


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


RE: struts tags vs jstl

Posted by Hue Holleran <hu...@openAction.net>.
See below:
> -----Original Message-----
> From: Nathan Coast [mailto:nathan@codeczar.com]
> Sent: 03 June 2003 07:15
> To: Struts Users Mailing List
> Subject: Re: struts tags vs jstl
>
>
> thanks
>
> so, if I understand it right.....
>
> you would use <c:forEach items=""> rather than <logic:iterate name=""...
>
> and behind the scenes the class implementing the c:forEach is a
> struts-el class?

No, <c:*> as in "core" from JSTL.

>
> or should you call the tags their struts names but jstl attributes?
>
> <logic-el:iterate items-"">

We tend not to use logic-el tags, only html-el and JSTL for everything else,
so this would be a <c:forEach>.

>
> if the latter, what are the preferred prefixes for the el tags? the same
> as their struts counterparts or with some el prefix or suffix?

We prefer to still use <html:*> for struts-el: easier to type, remember and
you're unlikely to ever want to mix "html" and "html-el" on the same page or
even in same app.

>
> cheers
> Nathan
>
> David M. Karr wrote:
> >>>>>>"Nathan" == Nathan Coast <na...@codeczar.com> writes:
> >
> >
> >     Nathan> is this documented somewhere?  ie which tags have /
> haven't been ported
> >
> > As other posters implied, if both a Struts tag and a JSTL tag
> overlap, the tag
> > wasn't ported to Struts-EL, in general.  The README.txt file in
> the "struts-el"
> > directory tries to list what tags were not ported, and why.
> >
> > Note that there were some problems in the RC1 release of
> Struts-EL, so you
> > should probably use the nightly build, or wait until RC2.
> >
> >     Nathan> James Norman wrote:
> >     >> I'm pretty sure that the latest release of Struts
> includes a subset of
> >     >> Struts tags that have been configured to support the EL
> Expression language.
> >     >> This is the expression language that is built into JSTL.
>  I think that only
> >     >> the Struts tags that don't have equivalents in the JSTL
> have been ported.
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.486 / Virus Database: 284 - Release Date: 29/05/2003
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.487 / Virus Database: 286 - Release Date: 01/06/2003


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


Re: struts tags vs jstl

Posted by Nathan Coast <na...@codeczar.com>.
thanks

so, if I understand it right.....

you would use <c:forEach items=""> rather than <logic:iterate name=""...

and behind the scenes the class implementing the c:forEach is a 
struts-el class?

or should you call the tags their struts names but jstl attributes?

<logic-el:iterate items-"">

if the latter, what are the preferred prefixes for the el tags? the same 
as their struts counterparts or with some el prefix or suffix?

cheers
Nathan

David M. Karr wrote:
>>>>>>"Nathan" == Nathan Coast <na...@codeczar.com> writes:
> 
> 
>     Nathan> is this documented somewhere?  ie which tags have / haven't been ported
> 
> As other posters implied, if both a Struts tag and a JSTL tag overlap, the tag
> wasn't ported to Struts-EL, in general.  The README.txt file in the "struts-el"
> directory tries to list what tags were not ported, and why.
> 
> Note that there were some problems in the RC1 release of Struts-EL, so you
> should probably use the nightly build, or wait until RC2.
> 
>     Nathan> James Norman wrote:
>     >> I'm pretty sure that the latest release of Struts includes a subset of
>     >> Struts tags that have been configured to support the EL Expression language.
>     >> This is the expression language that is built into JSTL.  I think that only
>     >> the Struts tags that don't have equivalents in the JSTL have been ported.
> 


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


Re: struts tags vs jstl

Posted by "David M. Karr" <dm...@earthlink.net>.
>>>>> "Nathan" == Nathan Coast <na...@codeczar.com> writes:

    Nathan> is this documented somewhere?  ie which tags have / haven't been ported

As other posters implied, if both a Struts tag and a JSTL tag overlap, the tag
wasn't ported to Struts-EL, in general.  The README.txt file in the "struts-el"
directory tries to list what tags were not ported, and why.

Note that there were some problems in the RC1 release of Struts-EL, so you
should probably use the nightly build, or wait until RC2.

    Nathan> James Norman wrote:
    >> I'm pretty sure that the latest release of Struts includes a subset of
    >> Struts tags that have been configured to support the EL Expression language.
    >> This is the expression language that is built into JSTL.  I think that only
    >> the Struts tags that don't have equivalents in the JSTL have been ported.

-- 
===================================================================
David M. Karr          ; Java/J2EE/XML/Unix/C++
dmkarr@earthlink.net   ; SCJP; SCWCD




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


Re: struts tags vs jstl

Posted by Nathan Coast <na...@codeczar.com>.
thanks

is this documented somewhere?  ie which tags have / haven't been ported

James Norman wrote:
> I'm pretty sure that the latest release of Struts includes a subset of
> Struts tags that have been configured to support the EL Expression language.
> This is the expression language that is built into JSTL.  I think that only
> the Struts tags that don't have equivalents in the JSTL have been ported.
> 
> ----- Original Message -----
> From: "Nathan Coast" <na...@codeczar.com>
> To: <st...@jakarta.apache.org>
> Sent: Monday, June 02, 2003 9:36 PM
> Subject: struts tags vs jstl
> 
> 
> 
>>Hi,
>>
>>I've used struts for a while now and figured I should probably look at
>>the jstl.  Theres certainly plenty of common ground to do with
>>programatic control (decisions and looping) and with
>>internationalisation.  I'm not sure sql tags in jsp are particularly
>>bright idea but anyway....
>>
>>Does anyone have any thoughts on which bits are best to use from each of
>>the taglibs?  Also, is there any plan to make the struts tags support
>>the definition of the corresponding jstl tags?  The idea being that
>>you'd only have to learn one syntax to use both taglibs, whilst using
>>the struts tags would give you all the additional funcionality that
>>comes with struts.
>>
>>cheers
>>Nathan
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: struts-user-help@jakarta.apache.org
>>
>>
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> 


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


Re: struts tags vs jstl

Posted by James Norman <jn...@taregon.com>.
I'm pretty sure that the latest release of Struts includes a subset of
Struts tags that have been configured to support the EL Expression language.
This is the expression language that is built into JSTL.  I think that only
the Struts tags that don't have equivalents in the JSTL have been ported.

----- Original Message -----
From: "Nathan Coast" <na...@codeczar.com>
To: <st...@jakarta.apache.org>
Sent: Monday, June 02, 2003 9:36 PM
Subject: struts tags vs jstl


> Hi,
>
> I've used struts for a while now and figured I should probably look at
> the jstl.  Theres certainly plenty of common ground to do with
> programatic control (decisions and looping) and with
> internationalisation.  I'm not sure sql tags in jsp are particularly
> bright idea but anyway....
>
> Does anyone have any thoughts on which bits are best to use from each of
> the taglibs?  Also, is there any plan to make the struts tags support
> the definition of the corresponding jstl tags?  The idea being that
> you'd only have to learn one syntax to use both taglibs, whilst using
> the struts tags would give you all the additional funcionality that
> comes with struts.
>
> cheers
> Nathan
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>


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