-none- 2007-10-04 - By Mark Thomas
Back 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@(protected) To unsubscribe, e-mail: users-unsubscribe@(protected) For additional commands, e-mail: users-help@(protected)
|
|