struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: Another bright idea, make "indexed" work with JSTL forEach and friends
Date Sat, 04 Jan 2003 18:38:39 GMT


On Sat, 4 Jan 2003, James Turner wrote:

> Date: Sat, 4 Jan 2003 13:26:34 -0500
> From: James Turner <turner@blackbear.com>
> Reply-To: Struts Developers List <struts-dev@jakarta.apache.org>
> To: struts-dev@jakarta.apache.org
> Subject: Another bright idea,
>      make "indexed" work with JSTL forEach and friends
>
> 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.
>

Unless you can do this all with reflection (instead of instanceof and
direct method calls), you'll create NoClassDefFound errors for people who
don't have the JSTL library in the stack.  Other than that caution, I'm
+1.

> Opinions?

Craig


--
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