This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach 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 Murach's Java Servlets and JSP this week in the Servlets 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
 
 
subject: Need Help with loops
 
Similar Threads
One DIM array ??? continued
how to insert multiple value in database
Array index out of bounds error
instanceOf(.) question
Can't accept parameters from an applet