tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: I find a bug in tomcat 4.1.x or later version(5.x,6.x)
Date Sun, 05 Jul 2009 22:43:22 GMT
Konstantin Kolinko wrote:
> 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.

+1

Mark



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


Mime
View raw message