is there no way to overcome this drawback? do i have to change the way I am getting my results from the DB to suit the iterator tags drawback in this case?
On Fri, Apr 24, 2009 at 5:25 PM, Bhaarat Sharma <bhaara...@gmail.com> wrote: > I have the following code in jsp scriplet > <% > ArrayList statisticsList = something.getStatistics(); > Iterator itr1 = statisticsList.iterator(); > > while (itr1.hasNext()) > { > dvo3_a = (VerificationVO) itr1.next(); > dvo3_b = (VerificationVO) itr1.next(); > dvo3_c = (VerificationVO) itr1.next(); > %> > > then in the html I am using the three objects dvo3_a, dvo3_b and dvo3_c > > while converting this to struts2 tags I've done this > > <s:iterator value = "statistics"> > ... > ... > .... > </s:iterator> > > how can i use the three objects as created above inside this struts2 html > tag? is there a way to get something AFTER the current element, while still > under the iterator tag? > > this is that itr1.next() statement does. it moves the cursor one element > next. > > Thanks! >