SAIF is moving to the more flexible Servlet filter model of intercepting,
if you are familiar with those.  Basically, it gives the interceptor much
better control over the chain by allowing it to abort chain processing if
needed by not calling chain.doIntercept(context) to execute the next
interceptor.  You still can put code before and after that method call
just now you have more control.

As for the interceptor's place, it remains the same - a way to factor out
common code several actions share.

Don

On Fri, 5 Dec 2003, Stephen Bartlett wrote:

> Hi,
>
> What is the behavior of the new ActionInterceptor.doIntercept() method.  Is
> this method invoked "before" the action is executed?
>
> When I first noticed SAIF about 3 weeks ago, the ActionInterceptor interface
> defined a beforeAction() and afterAction().  The beforeAction() and
> afterAction() were a nice compliment to the struts action class.  As they
> returned void it was still the responsibility of the Action class to manage
> the pageflow.  I saw interceptors as 'tasks' that an Action could composed
> together to add reusable functionality. For example, check the user is
> logged on, or prepare additional data for the action. etc.
>
> Today I updated from CVS and noticed the new interface and thought, what can
> this be used for? My first impression was that it could be considered a
> replacement for the Action class. In which case what is theit purpose of the
> STRUTS action class?
>
> I realize the after/before mechanism is still accessible using the
> AroundActionInterceptor class but this involves subclassing :-(
>
> I'm just trying to understand how to leverage SAIF for the maximum benefit
> and how best to integrate it with STRUTS.
>
> I hope i've made some sense and haven't written too much gibberish.
>
> steve.
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: IBM Linux Tutorials.
> Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
> Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
> Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
> _______________________________________________
> Struts-apps mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/struts-apps
>



-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click
_______________________________________________
Struts-apps mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/struts-apps

Reply via email to