Yes.
Attachment 13818 would encode parameter values using UTF-8. Of course
if you use that, you can change it to whatever you need. You'd use it
like this:
ActionRedirect redirect =
new ActionRedirect(mapping.findForward("doRedirect"));
redirect.addParameter("param1","value1");
redirect.addParameter("param2",2);
redirect.addParameter("param3",3.0);
return redirect;
Hubert
On Fri, 11 Feb 2005 14:15:59 -0800, Betty Koon <[EMAIL PROTECTED]> wrote:
> I am assuming that I will need to do all the proper URL encode at this
> level?
>
> -Betty
>
> -----Original Message-----
> From: Hubert Rabago [mailto:[EMAIL PROTECTED]
> Sent: Friday, February 11, 2005 2:07 PM
> To: Struts Users Mailing List
> Subject: Re: argument to struts config forward mapping
>
> What you can do is:
> > <action path="/processSimple" ... >
> > <forward name="success" path="/jsp/simple/SimpleResults.jsp?id="
> > redirect="true" />
> > </action>
>
> ...then in your action:
>
> ActionForward result = new ActionForward(mapping.findForward("success"));
> result.setPath(result.getPath() + myIdValue);
> return result;
>
> If you need to specify more than one param, or need to decide which params
> to include at runtime, download the attachment [
> http://issues.apache.org/bugzilla/attachment.cgi?id=13818 ] to bug 866 [
> http://issues.apache.org/bugzilla/show_bug.cgi?id=866 ]. (Then if you'd
> like Struts to support this functionality, vote for the bug while you're
> there.)
>
> Hubert
>
> On Fri, 11 Feb 2005 13:58:28 -0800, Betty Koon <[EMAIL PROTECTED]> wrote:
> > Does 1.2.4 support the following?
> >
> > <action path="/processSimple" ... >
> > <forward name="success" path="/jsp/simple/SimpleResults.jsp?id={0}"
> > redirect="true" />
> > </action>
> >
> > How would pass the argument in Action? Thanks.
> >
> > -Betty
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]