Hi All,

        Thanks for the replys.

The form is processed by my servlet and the user is directed to another page
(in this case a summary list of all of the data that they have entered).

The problem occurrs when they hit refresh on this summary page and the last
action was to add a new entry to there database, it looks like it is because
the URL still has the last request in it.

Is there any way of clearing this URL other than useing window.location.href
?

The unique token sounds like a good idea.

Thanks

Pete

-----Original Message-----
From: Parsons Technical Services [mailto:[EMAIL PROTECTED]
Sent: 18 February 2004 18:14
To: Tomcat Users List
Subject: Re: Stopping repeating requests



Phil,

True. I should have not said "all client side". How about client side
validation?

Point being as weather to handle it more from the client or server. All
depends on application.

Doug


> Hi!
>
> Parsons Technical Services wrote:
> > The
> > better way is to clear the form or send them to another page. That's all
> > client side.
>
> Not necessarily. What I do in such situations is this: have a servlet
> process the form data and then send something else (e.g. an "update
> successfull"-page) as response via sendRedirect(). This way, the user
> _has_ to at least push the back button. If you then add headers to
> prevent the page containing the form from being cached, even that
> would give the user a plain empty form all over again.
>
> Phil
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to