At 11:00 AM 5/9/2002 -0400, you wrote:
>On Thu, 9 May 2002, Luca Ventura wrote:
>
> > I think that the other search engines stores the results of the first
> > search in some data structure: so they scan this data structure when
> > the must show a particular page of the results to a user. Am I right?
> >
> > Do you have any idea on how I can implement this search engine in a
> > jsp-page?
>
>There are a handful of tag libraries available publicly that will help you
>solve this issue.  If you need more control, it's relatively easy to
>implement this functionality using the 'begin', 'end', and 'step'
>attributes of the JSP Standard Tag Library's <c:forEach> tag.  (I have a
>thorough example of this in my upcoming book on JSTL.)  Typically, you'd
>want to keep the data around in session scope and choose which pieces of
>it you want to display for each request.
>
>Alternatively, if you're retrieving data from an RDBMS, you can leave the
>data there and limit your query using JSTL's <sql:query> tag's 'maxRows'
>and 'startRow' attribute.  To do this, your query should be ordered (e.g.,
>it should use an "ORDER BY" clause) because otherwise, the ordering of
>rows in the result isn't guaranteed; if successive queries return results
>in a different order, then "row 10 through row 20" means something
>different each time.

I haven't look this 'paging' seriously, but soon i'll facing this problem
anyway.

I have a question, when using taglib solution, is it depends on the
Database (ie. support for limit or max rows) and JDBC drive (ie. support
caching ang client side cursor)?
In other word, will these taglib will work with all Database (even when DB
doesn't support above requirements?)
Thanks.

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to