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
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;
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
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
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
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
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
7 matches
Mail list logo