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
how abt using the same formbean for both actions ?
-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
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
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
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
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
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
8 matches
Mail list logo