By using the Pager Tag Library, you could use a single Vector in the
described scenario. The Pager Tag Library can help manage the display
of the correct sub-set of records and also generate a browsable index.

http://jsptags.com/tags/navigation/pager/

-James



On Thu, Apr 03, 2003 at 06:02:12PM +0530, Murali Mohan wrote:
> we assume s we have 100 vectors   v1,v2,v3.....v100 and has some data.
>
> My main vector is   Vector v= new Vector();
> v.addElement(v1);
> v.addElement(v2);
> .....
> .......
> v.addElement(v100);
>
> Now Declare a variable position to keep track of displaying data.  First position
> value  should be  0 .
> Use this postion value to diaplay data in main vector. First u diaplay v[0] data
> and then increment postion to 1 and diaply v[1] data and soon.
> In this way  u can display  first  10 vectors data  as u want and increment
> position to 10.
> When we click on next button use the current position value 10 and display from 10
> to 20 and increment position value to 20 to display remaining data.
>
> I hope this helps u.
>
> regards,

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".

Some relevant archives, FAQs and Forums on JSPs can be found at:

 http://java.sun.com/products/jsp
 http://archives.java.sun.com/jsp-interest.html
 http://forums.java.sun.com
 http://www.jspinsider.com

Reply via email to