> 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.
1. Download a hidden, unique "transaction ID" with each instance of a
form.
2. In the Session object, keep a table of ID's, marked "used/unused"
3. When a form is submitted, check the table for the ID.
3a. If the ID is unused, mark it used.
3b. If the ID is used, the form submission is a duplicate; handle
accordingly
3c. If the ID doesn't exist, then it was not issued during this
session;
treat it as "expired".
I hope this helps.
___________________________________________________________________________
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