This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
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


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Need Help with loops" Watch "Need Help with loops" New topic
Author

Need Help with loops

Preetish Madalia
Ranch Hand

Joined: Dec 12, 2007
Posts: 37
Hi,
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.


Merrill
Consultant, Sima Solutions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need Help with loops