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

Reply via email to