File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Logic:iterate for iterating for value of the counter variable

 
Senthil Kumar Sekar
Ranch Hand
Posts: 45
Eclipse IDE Firefox Browser Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 51
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic