RE: redirect to login page with error message on the jsp page

2004-07-30 Thread Gupta, Sahil
If the session object is invalidated(timed out), add the action errors in the request and call the saverequest(errors, req) in the action servlet and do a mapping.findForward to the login page. The login page should display the errors from the html:errors tag. Pretty straight forward. Sahil

RE: redirect to login page with error message on the jsp page

2004-07-30 Thread Geeta Ramani
Or you could write a RequestProcessor and override the processPreprocess method with something like this: HttpSession session = request.getSession(); if ( (session == null) || (session.getFavouriteObjectInSession == null) ) { //use Response object to redirect to login page with error set;

RE: redirect to login page with error message on the jsp page

2004-07-30 Thread Asim Ghosh
this is what i have done but using ActionServlet class. But how to avoid for the first time. Geeta Ramani <[EMAIL PROTECTED]> wrote: Or you could write a RequestProcessor and override the processPreprocess method with something like this: HttpSession session = request.getSession(); if ( (sessio

RE: redirect to login page with error message on the jsp page

2004-07-30 Thread Asim Ghosh
Are u sure that this will work because i have tried this already. Asim "Gupta, Sahil" <[EMAIL PROTECTED]> wrote: If the session object is invalidated(timed out), add the action errors in the request and call the saverequest(errors, req) in the action servlet and do a mapping.findForward to the

RE: redirect to login page with error message on the jsp page

2004-07-30 Thread Gupta, Sahil
has been working for me for very long now. -Original Message- From: Asim Ghosh [mailto:[EMAIL PROTECTED] Sent: Friday, July 30, 2004 11:33 AM To: Struts Users Mailing List Subject: RE: redirect to login page with error message on the jsp page Are u sure that this will work

RE: redirect to login page with error message on the jsp page

2004-07-30 Thread Gupta, Sahil
request is for any other resource, follow the steps in the earlier email. sahil -Original Message- From: Asim Ghosh [mailto:[EMAIL PROTECTED] Sent: Friday, July 30, 2004 11:31 AM To: Struts Users Mailing List Subject: RE: redirect to login page with error message on the jsp page this is what

RE: redirect to login page with error message on the jsp page

2004-07-30 Thread Geeta Ramani
return true; //ie normal processing without error } else etc.. Hth, Geeta > -Original Message- > From: Asim Ghosh [mailto:[EMAIL PROTECTED] > Sent: Friday, July 30, 2004 11:31 AM > To: Struts Users Mailing List > Subject: RE: redirect to login page with error message on th