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
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
-------------------------------------------------------------------------------------
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Logic:iterate for iterating for value of the counter variable