You are able to use the FilterDispatcher if you want to target the JSP pages, and force an interceptor stack to be called.
i.e. If your URL in the browser is http://www.drivenow.com.au/SearchResults.jsp You can map the action like this : <action name="anything" class="com.opensymphony.xwork.ActionSupport"> <result name="success" type="dispatcher">/SearchResults.jsp</result> <interceptor-ref name="aStack"/> </action> Then if you register the com.opensymphony.webwork.dispatcher.FilterDispatcher filter in web.xml, and set it up so that it the filter mapping includes /SearchResults.jsp (coud use *.jsp) What will happen is the filter dispatcher looks for any success (and then input) results with the coresponding URL, and executes the action. If there is no action with a success or input view, that matches, the filter chain is executed normally. The reason for using com.opensymphony.xwork.ActionSupport is that it always returns "success", thus causing the JSP to be dispatched to. I hope that makes sence.. If not, have a read of the FilterDispatcher source, since its not that complex ;) Cameron > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On > Behalf Of Sakke Wiik > Sent: Saturday, 28 February 2004 8:59 PM > To: [EMAIL PROTECTED] > Subject: [OS-webwork] ForwardAction > > I need a Struts-like ForwardAction so that all forwards to > JSP-pages executes a set of interceptors. Therefore I was > thinking of an action that takes an url as a parameter and > forwards to it. My question is: can I configure the result in > xwork.xml so that it reads the url-parameter? > I was thinking of something like this: > <action name="forward" class="ForwardAction"> > <result name="success" type="dispatcher"> > <param name="location">forwardUrl</param> > </result> > <interceptor-ref name="aStack"/> > </action> > > > Are there any better way to do this? > > cheers, > Sakke > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with a free > DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > > ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork