Reputation: 2741
I want to write a for loop in jsp like this
for(int i = 0; i< max;i++){
print("something");
}
where "max" and "something" are in variables in action class. what are the tags to write this. can you provide me sample code?
Upvotes: 0
Views: 3180
Reputation: 1649
You can use struts2 iterator tag
Documentation and Examples on Apache Struts2 Website
Also, I would suggest reading a Documentation/Get Started or Tutorial before getting started on a struts2-web project.
Upvotes: 2