You are viewing a plain text version of this content. The canonical link for it is here.
Posted to taglibs-user@tomcat.apache.org by MARCIO JULIÃO <ma...@riskcontrol.com.br> on 2003/06/03 16:40:28 UTC

tag forEach

Hi,

	Is there a way to break the flow inside the tag forEach ?

Example:

<c:forEach items="${listaDatas}" var="data" varStatus="contador">
	...
	<c:if test="${data.dia == 31}">
		<break/>
	</c:if>
</c:forEach>

Márcio Julião
RiskControl Serviços Ltda.
Email:marciojuliao@riskcontrol.com.br
Tel: (21) 2514-8253
Fax: (21) 2514-8233
Acesse o site: http://www.riskcontrol.com.br

-------------------------------------------------------------------------
Esta mensagem contém informações confidenciais e foi enviada somente ao(s)
destinatário(s) acima. Caso você não seja a pessoa endereçada, náo deverá
divulgar, distribuir ou copiar esta mensagem. Se você a recebeu por engano,
favor notificar imediatamente o remetente e em seguida destruí-la.
		 
This message contains confidential information and is intended only for the
individual named. If you are not the addressee you should not disseminate,
distribute or copy this message. Please notify the sender immediately if you
have received this message by mistake and then destroy it. 
------------------------------------------------------------------------



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


Re: tag forEach

Posted by Karsten Wutzke <kw...@starconcept.de>.
You can use a differnt syntax for iterating a certain number of times.

http://www.onjava.com/lpt/a/2611

Karsten

MARCIO JULIÃO wrote:

>Hi,
>
>	Is there a way to break the flow inside the tag forEach ?
>
>Example:
>
><c:forEach items="${listaDatas}" var="data" varStatus="contador">
>	...
>	<c:if test="${data.dia == 31}">
>		<break/>
>	</c:if>
></c:forEach>
>
>Márcio Julião
>RiskControl Serviços Ltda.
>Email:marciojuliao@riskcontrol.com.br
>Tel: (21) 2514-8253
>Fax: (21) 2514-8233
>Acesse o site: http://www.riskcontrol.com.br
>
>-------------------------------------------------------------------------
>Esta mensagem contém informações confidenciais e foi enviada somente ao(s)
>destinatário(s) acima. Caso você não seja a pessoa endereçada, náo deverá
>divulgar, distribuir ou copiar esta mensagem. Se você a recebeu por engano,
>favor notificar imediatamente o remetente e em seguida destruí-la.
>		 
>This message contains confidential information and is intended only for the
>individual named. If you are not the addressee you should not disseminate,
>distribute or copy this message. Please notify the sender immediately if you
>have received this message by mistake and then destroy it. 
>------------------------------------------------------------------------
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
>
>  
>



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