View Single Post
 
Old April 19th, 2005, 11:53 PM
sridevi sridevi is offline
Authorized User
 
Join Date: May 2004
Location: Chennai, TamilNadu, India.
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default Iteration in struts

Hi,

I have a collection in which i need to loop based on the upper limit and lower limit..

ex:
Just think abt the some search operation i.e Page Navigation concept ..
in that for each search it ll display number of result pages at the bottom , if we click the page number ,it will display that page content in the same page just by flushing the data and display that set of data in the same page design...

think that i need to display 10 data per page ....
Total number of data :100

if i click 2 page , it should display the data from Vector (collection which contain the whole sets of data) -- (11-20)
if i click 3 page , it should display the data from Vector (collection which contain the whole sets of data) -- (21-30)

in Servlet container i am getting the page clicked , so i can pass that back to the same page, after that ,acc'g to the page number now i need to display the data (lower limits and upper limits) by flushing the set of data that it was displayed eariler.


Is it possible by logic :iterator or any struts tag....
__________________
Try Try Try Until You Succeed