I have this need to dynamicly redirect to a form that only
accepts parameters via POST method. It feels that
Redirect.action does not help here?

So how could I do this redirect in my execute method
and how can I specity POST parameters? Using ww2.

with best wishes,
taavi

> ----- Original Message ----- 
> From: "Dick Zetterberg" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, November 06, 2003 5:30 PM
> Subject: Re: [OS-webwork] Dynamic redirect
>
>
> > If you are using the released version of WW1.3 then it did not have
> dynamic view mapping, however in your case I think you can make it dynamic
> by using action chaining instead.
> > Make sure your action has a public metod getUrl() that should return the
> view you wish to redirect to (a.jsp or b.jsp).
> > Change your doExecute:
> > if(...) {
> >   return SUCCESS;
> > else {
> >    this.url = someDynamicJSPValue;
> >  return  REDIRECTVIEW;
> > }
> >
> > In your actions/views file the REDIRECTVIEW should map to just the
> Redirect.action with no url specified. The url will be copied during the
> action chaining from your action and the redirect action should redirect
to
> that view.
> >
> > Another option is to just copy the 3-4 relevant lines from the Redirect
> action class and use them in your action. In that case the action should
> return NONE to do the redirect..
> >
> > Cheers,
> >
> > Dick Zetterberg
>



-------------------------------------------------------
This SF. Net email is sponsored by: GoToMyPC
GoToMyPC is the fast, easy and secure way to access your computer from
any Web browser or wireless device. Click here to Try it Free!
https://www.gotomypc.com/tr/OSDN/AW/Q4_2003/t/g22lp?Target=mm/g22lp.tmpl
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to