lightbulb432 wrote:
> I have a question about whether there is a race condition with the following
> technique for displaying messages across redirects.

Yes there is.

> If you submit a form with an invalid value on page P1 and the receiving
> servlet S redirects to another page P2, you'd like page P2 to contain a
> message saying "You entered an invalid value". You can only put the value in
> the session (not the request, because it's a redirect, not a forward), with
> session.setAttribute("message","You entered an invalid value").

Why not pass the information to P2 using a request parameter on the
redirect?

Mark

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to