tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: Race condition with values displayed across redirects
Date Thu, 04 Oct 2007 17:50:34 GMT
Hash: SHA1


lightbulb432 wrote:
> So would the following be a good way of approaching this using filter
> mappings (where the filter is as described in the OP)?
> - No filter on all servlets that can, upon success or failure, redirect to
> another page
> - Filters on all JSPs with a ${message} anywhere in their markup
> In what ways could I use the dispatcher element to enhance the setup
> further?

Well, my recommendation would be to bag the redirect-through-session
stuff and just show errors as forwards (not redirects). Then you don't
have to worry about cleaning-up error messages from the session.

I believe your solution violates the principle of least surprise: if I
submit a form and it fails, a RELOAD ought to cause the same error. In
your scenario, the error disappears (which is surprising if you ask me).

Avoiding the redirect also allows you to redisplay the contents of the
form without playing games with the session.

- -chris
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla -


To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message