Another possible way is to leverage the ActionRedirect class.
For example:
ActionRedirect redirect = new
ActionRedirect(mapping.findForward("someRedirectingForwardDef"));
redirect.addParameter("cmp", companyName);
redirect.addParameter("myOtherParameter", myOtherParameterValue);
return redirec
Hi,
one possible way is:
return new ActionForward("/orderWrapper.do?actionTarget=VIEW_CUSTOMER", true);
inside a execute action method.
Best greetings,
Paweł Wielgus.
2010/8/24 Struts User :
> Hi,
>
> Is it possible in struts1 to include a parameter in the action redirection.
> If I have a web a
u, 10 December, 2009 15:20:55
Subject: RE: redirect with parameter
Prasad:
> I am stuck with a problem I want to add parameters to
> redirect. Following is the example.
Here is what works for me:
In struts.xml:
303
${redirectUrl}
I generate the full url in my bean code in
Prasad:
> I am stuck with a problem I want to add parameters to
> redirect. Following is the example.
Here is what works for me:
In struts.xml:
303
${redirectUrl}
I generate the full url in my bean code including all
parameters I want encoded.
I hope that helps,
Neil
--
4 matches
Mail list logo