File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Need Help with loops Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Need Help with loops" Watch "Need Help with loops" New topic

Need Help with loops

Preetish Madalia
Ranch Hand

Joined: Dec 12, 2007
Posts: 37
I need to create a for loop in struts using logic:iterate for

for(int i=0; i< maxVal ;i++){


maxVal is also an int.

How to do this??
Thanks in advance.
Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
Sorry, the logic:iterate tag won't do this type of loop. I'd suggest you use the c:forEach tag instead.

Consultant, Sima Solutions
I agree. Here's the link:
subject: Need Help with loops
It's not a secret anymore!