If what you want is to have one Action class that can handle input from
multiple forms, then you just need to add a different action mapping in
struts-config.xml for each input form, giving each a distinct path. In the
Action itself, you would need to check to see which kind of form (or which
path) you were being invoked with.
For example:
<action path="/path1" name="form1" type="com.mycompany.MyAction"/>
<action path="/path2" name="form2" type="com.mycompany.MyAction"/>
would allow you to process requests for '/path1' or '/path2' with the same
Action class.
Hope this helps.
--
Martin Cooper
----- Original Message -----
From: "Narasimhan, Shyamala" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 04, 2001 6:21 AM
Subject: specifying multiple forms in an action mapping
> hi
>
> i would like to use two different forms in an action class... kindly
advise
> as to how to specify the action mapping
>
> thanks
>
> shyamala.
>