tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wolfgang Röckelein <>
Subject Re: How to break a loop in JSTL c:foreach
Date Wed, 11 Sep 2002 12:31:35 GMT

Shawn Bayern wrote:
>>I've read the jstl spec. in detail and don't find a way to do it. And
>>I guess it's not supported by jstl. Am I right?
> Right.  You can instead use <c:if> to prevent the body from running.
We also stumbled on this and used also this solution.

> There isn't a good way, using the JSP 1.2 tag-extension API, to break a
> loop; thus, while we didn't dislike the idea, we found it to be
> effectively unimplementable.

As an input for further development:

Would it be possible to have an loop tag which iterates based on a boolean 


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message