struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chuckcavan...@attbi.com
Subject Re: validating existence of session attributes in all Actions
Date Tue, 30 Jul 2002 18:08:31 GMT
Take a look at the processPreprocess() method in the 
RequestProcessor class. I have seen this method used for 
similar types of purposes. 

Just a suggestion,
chuck
> Do RequestProcessors stack like filters?  This is a point I'm not clear 
> on.  My reason for suggesting he subclass Action is that: 1) It works 
> fine for me 2) I want to use Tiles (which is going to, I believe 
> override the ReqProc - the plugin automatically does this, I think).  I 
> think ReqProc implementations are "either-or" (exclusive) and not "this 
> plus that" (inclusive; servlet filter-like).  That being the case, you 
> kind of shoot yourself in the foot.  Maybe I'm wrong :-)  Hopefully 
> someone will respond and clear this up.  I'm going to go look back over 
> Chuck's book again.
> 
> Regards,
> 
> Eddie
> 
> Troy Hart wrote:
> 
> >I've done the same sort of thing in the past, but over time I grew to
> >dislike the fact that all my actions needed to extend the one that
> >implemented this special logic. It made it so that I couldn't freely use
> >standard actions, like those defined in org.apache.struts.actions.
> >However, by putting this logic in the front controller
> >(RequestProcessor/ActionServlet) component you break the dependency on
> >the base action and life is good again...
> >
> >Troy
> >
> 
> 
> 
> --
> To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>
> 

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


Mime
View raw message