File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 JavaScript Promises Essentials this week in the JavaScript 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