Redirecting from Java: How to show error messages

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Redirecting from Java: How to show error messages

Vinay Agarwal
Hello,

 

Redirecting from Java using HttpServletResponse works well but the error
messages stored in the HttpServletRequest don't show after the redirect.  Is
there a way to make error messages show? Thanks in advance.

 

Regards,

Vinay Agarwal

 

Reply | Threaded
Open this post in threaded view
|

Re: Redirecting from Java: How to show error messages

Pradeep Chaudhary
Browser will make a new request on redirect. So all the infomartion
stored in original request object is lost.
You can put the error messages in session before redirecting and
access it from redirected page.

Pradeep

On 7/21/06, Vinay Agarwal <[hidden email]> wrote:

> Hello,
>
>
>
> Redirecting from Java using HttpServletResponse works well but the error
> messages stored in the HttpServletRequest don't show after the redirect.  Is
> there a way to make error messages show? Thanks in advance.
>
>
>
> Regards,
>
> Vinay Agarwal
>
>
>
>
>