The easiest is to put your data as attributes in the request scope with request.setAttribute( name, value), and then extract them in the second action with 'MyClass value = (MyClass) request.getAttribute(name)'. You can also put the attributes in the session scope, but you need to remember to remove them when you are done with them.
If the second action is to be called as a regular action and therefore need params in the formbean, you could try creating a formbean of the type the second action is expecting and then store it in the request scope under the name expected. The problem with this is that hardcoding a name/class is involved and now your implementation is tightly coupled to the class and name of the second action's formbean. As long as you are doing this kind of hardcoding you could in the second action see if the first action's formbean is in the request/session and extract params from there. HTH, -ed On 10/21/06, Jean-Marie Pitre <[EMAIL PROTECTED]> wrote:
Hi, I would like to forward an Action to another one. My problem is : I want to pass a data from my first first action to my second formbean (second action). I tried to do a setattribute in my first action before calling mappingfindforward and in my second formbean to create an acessor but the formbean is never populated. Have you got and idea ? is it possible and correct to do that ? Thanks, Regards JMP. ------------------- Email Disclaimer http://www.cofidis.be/emaildisclaimer.php --------------------------------------------------------------------- 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]