Thanks but It wouldn't work because I call some old code that use request.getParameter() and not ActionContext.
finally, all I wan't is just a standard "forward"...

Mike


cilquirm a écrit :
why can't you add parameters in chain?

In your action, can't you :

 1)  implement ParameterAware
 2) set a parameter value in the map that's passed in
 3) chain to your action
 4) have the value be set in your chained action, via the params interceptor

-a



Laurie Harper wrote:
Mike Baroukh wrote:
I can't figure how to do this.
Can somebody help me ????

I wan't to forward an action to another with something like
requestDispatcher("/action.do?param1=value1").forward(req, res);

- I can't use redirect because I wan't to use the same request scope.
- I can't use chain because chain doesn't allow to add parameters.
- I can't use dispatcher because *.do is mapped to a filter and not a servlet. The application server doesn't find servlet to forward to (Result in file not found ...)
- I wan't to call again interceptor stack

So, please, how do you resolve this case ???
Why having deleted the ServletAction that was in WW ????
So you're using Struts2? Why not just configure the target action in your action mapping as normal? Roughly,

   <action ...>
     <result name="blah">/action.do?param1=value1</result>
     ...
   </action>

If 'value1' isn't static, you can use the ${expr} form to resolve it against the value stack.

L.


---------------------------------------------------------------------
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]

Reply via email to