tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Bayern <>
Subject Re: How to break a loop in JSTL c:foreach
Date Wed, 11 Sep 2002 12:08:57 GMT
On Wed, 11 Sep 2002, Eric Du 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.

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.

Shawn Bayern
"JSTL in Action"

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

View raw message