You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Zakaria khabot <z....@ced.mfie.gov.ma> on 2002/11/12 15:39:04 UTC

Two actionForm in the same Action

Hi,
How to call two ActionForm in the same Action.
I have wrote : 
EnregisterForm enregForm = (EnregisterForm) form;
and also 
RechForm rechForm = (RechForm) form;
but I received an Exception.
How to do.
thanks.

____________________________________
 
Zakaria KHABOT
Ingénieur d'état Réseaux informatiques
MFIE/CGED
Tel : +212 62 46 10 29
E_mail : z.khabot@ced.mfie.gov.ma
 

RE: Two actionForm in the same Action

Posted by Fedor Smirnoff <in...@olnix.com>.
Hi,

You can do something like this:

HttpSession session = request.getSession();
RechForm rechForm =(RechForm)session.getAttribute("rechForm");

Hope it helps

Fedor

-----Original Message-----
From: Zakaria khabot [mailto:z.khabot@ced.mfie.gov.ma] 
Sent: Tuesday, November 12, 2002 6:39 AM
To: struts-user
Subject: Two actionForm in the same Action

Hi,
How to call two ActionForm in the same Action.
I have wrote : 
EnregisterForm enregForm = (EnregisterForm) form;
and also 
RechForm rechForm = (RechForm) form;
but I received an Exception.
How to do.
thanks.

____________________________________
 
Zakaria KHABOT
Ingénieur d'état Réseaux informatiques
MFIE/CGED
Tel : +212 62 46 10 29
E_mail : z.khabot@ced.mfie.gov.ma
 



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org