struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Hertz" <jhe...@speakeasy.net>
Subject RE: Overriding RequestProcessor for sesion validationi
Date Fri, 07 May 2004 17:29:18 GMT

IIRC, Action.saveErrors just puts things into the request scope that the
JSP pulls out. You could do that yourself the same way (there's a struts
constant for the identifier)

Filters really do a nice job for this type of thing.

> -----Original Message-----
> From: news [mailto:news@sea.gmane.org] On Behalf Of GMaine
> Sent: Friday, May 07, 2004 12:31 PM
> To: user@struts.apache.org
> Subject: Overriding RequestProcessor for sesion validationi
> 
> 
> Hi. I wonder if someone can help me. I'm trying to override 
> RequestProcessor to check whether a user has logged in. If he 
> has, I'll let the request proceed. If not, I'd like to 
> forward him somewhere.
> 
> The problem is, I need to display an error message if I'm 
> redirecting the user. I'm trying to use standard Struts 
> classes like ActionErrors. But RequestProcessor doesn't have 
> access to the Action.saveErrors method. Is there another way 
> to put ActionErrors into the response?
> 
> Or am I going about this the wrong way?
> Thanks,
> Jacob
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message