Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > Servlets
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Servlets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old April 19th, 2005, 11:53 PM
Authorized User
Join Date: May 2004
Location: Chennai, TamilNadu, India.
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default Iteration in struts


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

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
  #2 (permalink)  
Old May 5th, 2005, 01:52 AM
Friend of Wrox
Join Date: Jul 2004
Location: , , India.
Posts: 345
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to gokul_blr Send a message via Yahoo to gokul_blr

Yes, you are right make use of some javascript for passing values of reference clicked logically I hope you can..

Gokulan Ethiraj
  #3 (permalink)  
Old July 1st, 2005, 07:01 AM
Registered User
Join Date: Jul 2005
Location: Chennai, TamilNadu, India.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to Satishhhh

  I think you r talking about the page navigation as in Google... link of search pages... In struts we cant do simillar thing and only we can get 10 set of records from the database and can show similar property... i think it is a time consuming coz it will go to database server each time


Similar Threads
Thread Thread Starter Forum Replies Last Post
struts actions package: "struts", other packages? ojasrege Struts 1 July 21st, 2007 06:02 AM
iteration bostek Excel VBA 5 August 30th, 2006 01:23 AM
iteration movenext weazy Excel VBA 0 June 9th, 2006 05:56 PM
Picture iteration bahachin Excel VBA 3 September 28th, 2005 12:44 PM
Iteration through a dropdown. tryxxter PHP How-To 1 February 9th, 2005 11:05 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.