tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Bayern <bay...@essentially.net>
Subject Re: about "return" in c:if tag
Date Thu, 06 Feb 2003 06:55:00 GMT
On Thu, 6 Feb 2003, Kishi Mikio wrote:

> Hi,
> 
> <c:if test="...">
>   <% return; %>
> </c:if>
> 
> As above, I want to return in c:if tag, but can not....
> In this case, what is the best practice ?
> 
> Is creating my custom tag (myTag:return)
> , which return SKIP_PAGE immediately, better ?
> 
> Thanks in advance

You don't seem to mind using scriptlets, so

 <c:if test="...">
   <% if (1==1) return; %>
 </c:if>

would work.  Your own <my:return> would indeed probably be cleaner,
though.

-- 
Shawn Bayern
"JSTL in Action"   http://www.manning.com/bayern


---------------------------------------------------------------------
To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: taglibs-user-help@jakarta.apache.org


Mime
View raw message