Craig Wrote:
>IDEA #1:
>
>I have not tried this, but a different approach should be feasible, based on the
>fact that the generated code for a JSP page is actually a servlet. In the
>javax.servlet.http.HttpServlet class, there is a method called
>getLastModified(), which is called when the browser issues a conditional GET
>request. If the server determines that the last modified time is before that
>specified by the brower, it will send a "Not Modified" response back, instead of
>the page contents.
I think I can also make use of this as well, but it is not a total solution
for my problem.
>IDEA #2:
>If the content of these pages is actually static, why use JSP at all? Why not
>just generate HTML pages through some external means, and serve them directly?
Contect will could change anywhere from 3 times a minute to
once an hour. What we are going to do is only re-generate the "cached"
pages once every 5 minutes, to easy load on the server. I just needed the
code to save jsp output to a file, but someone else replied and suggested
to extend HTTPSERVLETRESPONSE, which is exactly what I needed.
thanks anyway!
Floyd
___________________________________________________________________________
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