so.. the action with dynamic result location should also be the solution for
my problem! thx

hans 

> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] Im 
> Auftrag von Jason Carreira
> Gesendet: Samstag, 28. Februar 2004 20:22
> An: [EMAIL PROTECTED]
> Betreff: RE: [OS-webwork] ForwardAction
> 
> This should be easy to do... Just extend ActionSupport with a 
> class with a forwardUrl property (with a getForwardUrl() 
> method) and your mapping could be like this:
> 
>         <action name="forward" class="ForwardAction">
>              <result name="success" type="dispatcher">
>                  <param name="location">${forwardUrl}</param>
>              </result>
>              <interceptor-ref name="aStack"/>
>          </action>
> 
> The ${...} syntax tells it to evaluate the stuff between the 
> brackets as an expression, so it will call getForwardUrl() on 
> your Action... 
> 
> > -----Original Message-----
> > From: Sakke Wiik [mailto:[EMAIL PROTECTED]
> > Sent: Saturday, February 28, 2004 5:59 AM
> > 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_id56&alloc_id438&op=ick
> _______________________________________________
> 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_id56&alloc_id438&op=click
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to