| Author |
How to increment count in S:iterator tag
|
Saurabh Naik
Ranch Hand
Joined: Apr 24, 2008
Posts: 87
|
|
Hello
I have an arraylist<String>. I am using s:iterator tag to display it. But I want to display 2 items at a time.
Is there any way to show 2 items at one iteration. How can I increment current count within iteration and display next item within arraylist.
|
SCJP 6 (88%), SCWCD 5 (78%), preparing for SCBCD
|
 |
Mohana Rao Sv
Ranch Hand
Joined: Aug 01, 2007
Posts: 485
|
|
Struts2 IteratorTag
|
ocjp 6 — Feeding a person with food is a great thing in this world. Feeding the same person by transferring the knowledge is far more better thing. The reason is the amount of satisfaction which we get through food is of only one minute or two. But the satisfaction which we can get through the knowledge is of life long.
|
 |
Saurabh Naik
Ranch Hand
Joined: Apr 24, 2008
Posts: 87
|
|
Thanks for the reply
But I dont want it this way. I simply want to print next values in same iteration.
|
 |
 |
|
|
subject: How to increment count in S:iterator tag
|
|
|