On Mon, 29 Nov 1999, Yuki Tanabe wrote:
> 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!
I thought there were a lot of good suggestions in response to your
earlier query, but I'm not sure the above is the best approach,
particularly #1. It seems very wasteful (both in time and space) to
generate and store all of the html pages. As you say, there could be
1000 rows, and someone may only look at the first 100 -- if so, you've
(in some sense) done 10 times as much work as you need to. What makes
a lot more sense to me is to only store the raw information needed to
create the pages, and on each request, only generate the needed page
(and of course you'll need to store something that indicates which
page is the "needed" page -- and there are a variety of ways to do
that, depending on exactly how you set things up and what navigation
you allow between pages). This way, you're storing a lot less, and
doing a lot less work on each request.
Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]
___________________________________________________________________________
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