Hi
You need to set a token that is unique for the request.
The Action class has methods to do this for you
protected boolean isTokenValid(HttpServletRequest p0)
protected void resetToken(HttpServletRequest p0)
protected void saveToken(HttpServletRequest p0)
I thnk saveToken plants the token in the request and in your form
automatically, they can be checked to be still the same when the form is
submitted. If not your form is out of sync with your expected flow of events
Then in your action , check it's valid and set a new value afterwards
if (dispatch.compareTo(DELETE) == 0) {
if (!isTokenValid(request)) {
errors.add(ActionErrors.GLOBAL_ERROR,new
ActionError("error.transaction.token"));
nextURL="error";
} else {
// do the right thing here
nextURL = "continue";
}
} // end if valid token
if (!errors.empty())
saveErrors(request, errors);
saveToken(request);
return (mapping.findForward(nextURL));
:-)
Regards
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
Advanced Banking Solutions Limited
+44 (0)20 7448 9146
-----Original Message-----
From: Stanley Struts [SMTP:[EMAIL PROTECTED]]
Sent: 29 November 2001 06:54
To: [EMAIL PROTECTED]
Subject: Page Expiration
How can I make it so that when the user clicks on the
back button, he is presented with an error stating
that the page has expired (does this make sense?)
__________________________________________________
Do You Yahoo!?
Yahoo! GeoCities - quick and easy web site hosting, just
$8.95/month.
http://geocities.yahoo.com/ps/info1
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>