Re: Forward Action to Action

2006-10-23 Thread Ed Griebel
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 remo

Re: Forward Action to Action

2006-10-23 Thread Lixin Chu
how abt using the same formbean for both actions ?

RE : Forward Action to Action

2006-10-23 Thread Jean-Marie Pitre
-Message d'origine- De : Jean-Marie Pitre [mailto:[EMAIL PROTECTED] Envoyé : samedi 21 octobre 2006 16:27 À : Struts Users Mailing List Objet : Forward Action to Action Hi, I would like to forward an Action to another one. My problem is : I want to pass a data from my first

Re: Forward Action to Action

2006-10-23 Thread WongTseng王曾
Maybe it's impossible. Cos the data populated into the formbean is read from url parameters, and you can't create parameter in request by any Java API. So 'tis difficult. But you can hardcode the paramters in the path of the forward which points to your second action. 2006/10/21, Jean-Marie Pitr

Re: Forward Action to Action

2006-10-23 Thread ShiBing Chen
Action chain can do that. 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 befo

RE: Forward Action to Action

2006-10-23 Thread zhang xiao
From: "Jean-Marie Pitre" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" To: "Struts Users Mailing List" Subject: Forward Action to Action Date: Sat, 21 Oct 2006 16:27:13 +0200 Hi, I would like to forward an Action to another one. My proble

Re: Forward Action to Action

2006-10-23 Thread João Vieira da Luz
I think you are little bit confused. FormBeans are the request abstractions of requests. Thus, in order to populate the 2nd bean you have to use request PARAMETERS instead of request ATTRIBUTTES. Hope this helps you On 10/21/06, Jean-Marie Pitre <[EMAIL PROTECTED]> wrote: Hi, I would like to

Forward Action to Action

2006-10-21 Thread Jean-Marie Pitre
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 f