I'm think it's a good idea to cut the result of the response in many
responses.
But generate html files is difficult to manage.
I prefer to add an attribut to my request to indicate that I want 100 rows
and the first to display is 200th.

First

I want 100 rows of the table xxx
http://www.monserveur.com/servlets/servletTable?n=100
return rows : 1-100
Next link : http://www.monserveur.com/servlets/servletTable?n=100&start=101

Next
I want 100 rows of the table xxx, and the first is 101
http://www.monserveur.com/servlets/servletTable?n=100&start=101
return rows : 101-200
Next link : http://www.monserveur.com/servlets/servletTable?n=100&start=201
Prev link : http://www.monserveur.com/servlets/servletTable?n=100&start=1



Next
I want 100 rows of the table xxx, and the first is 201
http://www.monserveur.com/servlets/servletTable?n=100&start=201
return rows : 201-300
Next link : http://www.monserveur.com/servlets/servletTable?n=100&start=301
Prev link : http://www.monserveur.com/servlets/servletTable?n=100&start=101


and so long...

If the request is very long, you can buffer the result in your servlet.

This approach can display only 50 rows for one client and 100 rows for
another client

http://www.monserveur.com/servlets/servletTable?n=50
http://www.monserveur.com/servlets/servletTable?n=100




P.S. If my english is not very good, please excuse me, I'm french :-)


--------------------------------------------------------------------
Erik Mazoyer, Chef de projet
HyperOffice
6, rue Jacques Daguerre - 92565 Rueil-Malmaison Cedex
Tél. 01 41 96 96 76
Fax 01 41 96 96 77
Mél  [EMAIL PROTECTED]

> -----Message d'origine-----
> De:   Yuki Tanabe [SMTP:[EMAIL PROTECTED]]
> Date: lundi 29 novembre 1999 09:56
> À:    [EMAIL PROTECTED]
> Objet:        Re: Returning pages that span multiple pages
>
> Thanks for your help!
>
> The problem with just returning the result page in a single.html file is
> that
> the it could contain anything up to 1000 rows, and I am worried that this
> would
> take ages to load. What if what the user actually needed to see was in the
> first
> 100 rows? Ideally, I would like to immitate something done, for example,
> by the
> Amazon.com site.
>
> After having some of your advices I am planning to do the following:
> 1. Generate appropriate number of pages according to the query nad store
> them as
> .html files.
> 2. Once the session with the current user is over, delete these pages.
>
> I'm still new to this stuff so I'll have to figure out how to do part 2,
> but
> please commment on my overall approach.
>
> Any help is greatly appreciated!
>
> Regards,
>
> Yuki
>
>
>
> ______________________________________________________________________
> This E.Mail is confidential and intended for its addressee only. If you
> have
> received this in error, please delete it from your PC and inform us by
> telephone.
>
> No reliance may be placed upon this E.Mail without written confirmation of
> its
> contents and any liability arising from such reliance without written
> confirmation is hereby excluded. Copyright in this E.Mail remains with the
> Sumitomo Bank Limited
>
> __________________________________________________________________________
> _
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to