Note however that there is no JSTL equivalent for most of the Struts
HTML taglib... the Struts HTML tags are Struts-aware, i.e., will
automatically pull data from your form beans to populate the fields...
JSTL can't do that automatically.
Aside from the HTML taglib, Laurie is of course right, you'll find JSTL
pretty well provides what the other Struts taglibs do, and more.
Frank
Laurie Harper wrote:
> Simply put, the Struts tags pre-date JSTL. The JSTL tags provide
> equivalent functionality in many areas and more besides. Since they are
> a standard and more complete solution than the equivalent Struts tags,
> their use is recommended.
>
> The Struts tags have been kept for backwards compatibility and for those
> who are unable to adopt JSTL.
>
> HTH,
>
> L.
>
> Rick Schumeyer wrote:
>> Can I ask, what is the reason for avoiding the Struts tags and using
>> the JSTL tags? (It begs the question, what is the purpose of the
>> struts tags?)
>>
>> Wendy Smoak wrote:
>>> On 12/9/06, Fabio Miranda Hamburger <fabmirha@(protected)>
>>> wrote:
>>>
>>>> How can I 'send' this array from fooBarStrutsAction.java, and its
>>>> method:
>>>> public ActionForward execute(...) TO a jsp file, let's say display.jsp?
>>>> and by the way, how to access that array within the JSP file.
>>>>
>>>> I think I am missing a crucial concept here, thanks for clarify this.
>>>
>>> In your action,
>>> request.setAttribute( "myArray", myArray );
>>>
>>> In your JSP use JSTL's <c:forEach> tag to display the values.
>>>
>>> (The Struts <logic:iterate> tag can be used instead. While we
>>> recommend JSTL over the equivalent Struts tags, you might want to keep
>>> things simple at first and avoid introducing another library.)
>>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@(protected)
> For additional commands, e-mail: user-help@(protected)
>
>
>
>
--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com
AIM/Yahoo: fzammetti
MSN: fzammetti@(protected)
Author of "Practical Ajax Projects With Java Technology"
(2006, Apress, ISBN 1-59059-695-1)
Java Web Parts - http://javawebparts.sourceforge.net
Supplying the wheel, so you don't have to reinvent it!
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)