SUH wrote:
> Hi, all. Is there any way to check a request if it is coming from
> browser's cache ? The problem is :When users refresh web pages,
> browsers repost data to my servlet.My servlet should not do anything
> if the request is sent by refreshing web pages. Thanks in
> advance. Chang
Your servlet had better do something -- otherwise the user is going to
end up with a blank page and an error message like "The document
contained no data" when the reload request returns. Use one of the
techniques suggested in other responses, such as a transaction ID, that
your servlet can use to detect whether this is a repeat or not.
Craig McClanahan
___________________________________________________________________________
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