I have done stuff like that. In my case I had two action entries in
struts.xml  each one defining a form.
Both of these mapped to the same action class.

Just make sure they have unique paths


-----Original Message-----
From: Rick Col [mailto:[EMAIL PROTECTED] 
Sent: Saturday, September 06, 2003 3:12 PM
To: [EMAIL PROTECTED]
Subject: two actionForms for one action class?

Hi,

Is there any way to use two action forms for one
action class.

I have the following situation: one html form (form1)
and a "go" button for sample1.jsp, another html form
(form2) and "submit" button for sample2.jsp.
Once user clicks on "go" button, she will be directed
to sample2.jsp, form1 values will be used and
displayed on sample2.jsp. Once user clicks on "submit"
button on sample2.jsp, form2 values should be saved to
database.

I need to desgin one action form (actionForm1) for
form1 to be retrived and displayed on sample2.jsp, and
design another action form (actionForm2) to be
retrieved and saved to database. Thus, the action
class I design for sample2.jsp needs two actionForms.
I am wondering there is any way to set up
two forms for one action class (in struts-config and
elsewhere)?

regards, 

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

---------------------------------------------------------------------
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]

Reply via email to