Nic,

> >> getLastModified also allows you to implement systems where you
> >> test a page resource to see if there is any required processing
> >> before doing it.
>
> >getLastModified returns the time the HttpServletRequest object was
> >last modified. I don't understand how this can be used for revisiting
> >pages. Can you please be more specific?
>
> When you cache the output of your servlet you add a time stamp, you
> then use that timestamp to deliver the cached content rather than the
> re-generated content.
>
> When another request comes in you check the request against the most
> content to check most recent update.

I think I understand what you mean now. You're talking about how a
servlet can maintain a cache of sent pages. I'll keep your suggestions
in mind for an application where this is an option. For the current
project, caching is to be avoided, be it on the client or be it on the
server. Not the whole generated page needs to be remembered but enough
information to be able to re-generate it. The request object should
contain this information.


Regards,

Heinz Wehner
(Karlsruhe, Germany)

___________________________________________________________________________
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