struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Husted <hus...@apache.org>
Subject Re: Change Action, ActionForm to use ActionContext?
Date Sat, 19 Feb 2005 02:02:44 GMT
On Fri, 18 Feb 2005 09:04:32 -0800, Don Brown wrote:
> There is a middle ground which I have been playing with on and off
> frequently called "interceptors".  In WebWork2, you can define
> action interceptors that intercept certain actions, defined at a
> per-action level.  With Struts Action Invocation Framework (SAIF)
> at struts.sf.net/saif , we ported interceptors to pre-chain Struts,
> but it would be interesting to integrate that work with Struts as
> it is now.  It would be nice to define code that would be executed
> only before certain groups of actions.

Why not add a Command to the request processing chain that acts as an interceptor. 

The Command looks for the group of Actions, does it's business when they come along, and ignores
the rest. 

-Ted.



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


Mime
View raw message