wood burning stoves 2.0*
The moose likes Struts and the fly likes Logic:iterate for iterating for value of the counter variable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Logic:iterate for iterating for value of the counter variable" Watch "Logic:iterate for iterating for value of the counter variable" New topic
Author

Logic:iterate for iterating for value of the counter variable

Senthil Kumar Sekar
Ranch Hand

Joined: Aug 08, 2010
Posts: 45

Hi,
I need to use logic:iterate tag for iterating depending upon the value of the counter variable.
Can anyone suggest me how to do that?

Thanks.

Regards
Senthil Kumar Sekar
Komal Renu
Ranch Hand

Joined: Jul 21, 2011
Posts: 51
<logic:iterate> will only iterate over collection, Map or array.

Refer - http://struts.apache.org/1.x/struts-taglib/tlddoc/logic/iterate.html

You can consider using <c:forEach> tag or else, scriplets in which you write a 'for' loop to iterate over the counter.

Thanks and Regards,
-------------------------------------------------------------------------------------
Komal Renu | krenu@infocepts.com | www.infocepts.com
-------------------------------------------------------------------------------------
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Logic:iterate for iterating for value of the counter variable
 
Similar Threads
core java collection
Calendar Problem
Conditionally Exiting Logic Iterate
Problem with IndexId attribute
Iterate tag