I did this by having a search bean which held a vector of vectors, the latter
vectors representing the results on each page - this was populated when the search
was executed.
The bean holds state as to the current page and exposes methods which return an
enumeration of the results from the current page and which is called from the jsp
page.
It also exposes methods prev() and next() which can be called from the web action
triggered by clicking previous or next.
The bean is held in session scope.
Hope that helps


Ashwani Kalra wrote:

> Hi,
>
> Rajiv has given me  the solution for diplaying the records page by page(say
> 10 records per page). But Once i get all the records from the database i
> dont want to use my EJB to do any thing. I just want those records obtained
> in a vector or array to be displayed page by page
> Has any body more ideas ???
>
> thanks
> Ashwani
>
> Visit http://www.niit.com for eCommerce Solutions.
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> FAQs on JSP can be found at:
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.html

--
Tim Fox (¦¬o)

Hyperlink plc
http://hyperlink.com

email: [EMAIL PROTECTED]
phone: +44 (0) 207 240 8121

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html

Reply via email to