struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin Cooper <mart...@apache.org>
Subject Re: Another bright idea, make "indexed" work with JSTL forEach and friends
Date Sat, 04 Jan 2003 19:37:41 GMT


On Sat, 4 Jan 2003, James Turner wrote:

> As has been pointed out, about the only remaining reason to use
> logic:iterate over c:forEach is that you can't use an html:text tag (or
> friends) with an "indexed" property set, because it only looks for
> logic:iterate on the page stack.
>
> Now, it would be very simple (having peered at the source) to have the
> html tags also look for JSTL iterators.  However, to make this work,
> we'd need to add a dependency on jakarta-taglibs so that the class would
> be available.
>
> I don't think that this would break anything in terms of JSP version
> support, since it wouldn't require evaluation of ELs, just looking up
> the stack to see if we find a JSTL interator hanging around.
>
> Opinions?

If you want to do this, I'd rather see it happen in the html-el taglib
than the regular html taglib. Struts-EL already depends on JSTL, and is
designed to work in cooperation with it, so it's a much more natural fit
than trying to sneak JSTL functionality into the regular tags.

--
Martin Cooper


>
> _________________________________________
> James
> ICQ#: 8239923
> More ways to contact me: http://wwp.icq.com/8239923
> See more about me: http://web.icq.com/whitepages/about_me?Uin=8239923
> _________________________________________
>
>
>
> --
> To unsubscribe, e-mail:   <mailto:struts-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:struts-dev-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:struts-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-dev-help@jakarta.apache.org>


Mime
View raw message