tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: I find a bug in tomcat 4.1.x or later version(5.x,6.x)
Date Sun, 05 Jul 2009 22:40:47 GMT
2009/7/5 jun ma <fancy.421@gmail.com>:
> <logic:iterate id="element" name="keys">
>
> <%
>
>           Integer myElement = (Integer)element;
>
>           List myList = (List)myMap.get(myElement);
>
>           *if* (myList == *null* || myList.size() <= 1)
>
>           {
>
>               System.out.println("test!!!");
>
>               *continue*;
>
>           }
>
>    %>
>
> </logic:iterate>


The code is wrong.

You cannot "continue" or "break" when you do not have a loop in *your*
Java code,  and the tag is not your code. It is just a coincidence
that it worked before.

I do not see any requirement in the JSP specification to support such tricks.


Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message