Hi,
For part 2, you can use the HttpSessionBindingListener and
HttpSessionBindingEvent
classes of the Servlet API. A good example is in Java Servlet Programming by
Jason Hunter, in the Databases chapter (the example of using a HttpSession
to
hold a Connection). In your valueUnbound method, use the File.delete()
method to delete the HTML files. The valueUnbound method gets called
whenever the Session expires.
HTH
Vasudev
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Vasudev Ram
Infosys Technologies Limited
Pune, India
Email : [EMAIL PROTECTED]
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
On a clear day you can see the blue screen of death.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
> -----Original Message-----
> From: Yuki Tanabe [SMTP:[EMAIL PROTECTED]]
> Sent: Monday, November 29, 1999 2:26 PM
> To: [EMAIL PROTECTED]
> Subject: 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