If all of your Forms have exactly the same properties then use the same form mapping for all your actions.
If all of your Forms share some properties then use different forms for each action. Each of these forms would extend a generic form which extends of course ActionForm or ValidatorForm. Phil --- Michael Cardon <[EMAIL PROTECTED]> wrote: > Hello, > > If I have 5 Action classes that all need to > reference the same Form object, > should I map each Action to the same form name, or > use different names for > each of the Forms in the Actions? Does it make a > difference if I�m using > session scope vs. request scope? > > Example using the same form names, same form class: > > <form-bean name="pwForm" > type="mim.struts.form.SelectForm"/> > > <action path="/teacherPw" > > type="mim.struts.action.pw.StudentPwAction" > name="pwForm" > scope="request" > validate="false" > parameter="dispatch"> > <forward name="success" path="mim.pw.list"/> > </action> > > <action path="/studentPw" > > type="mim.struts.action.pw.StudentPwAction" > name="pwForm" > scope="request" > validate="false" > parameter="dispatch"> > <forward name="success" path="mim.pw.list"/> > </action> > > ... 3 more actions .... > > > Example using diferent form names, same form class: > > <form-bean name="teacherpwForm" > type="mim.struts.form.SelectForm"/> > <form-bean name="studentpwForm" > type="mim.struts.form.SelectForm"/> > > <action path="/teacherPw" > > type="mim.struts.action.pw.StudentPwAction" > name="teacherpwForm" > scope="request" > validate="false" > parameter="dispatch"> > <forward name="success" path="mim.pw.list"/> > </action> > > <action path="/studentPw" > > type="mim.struts.action.pw.StudentPwAction" > name="studentpwForm" > scope="request" > validate="false" > parameter="dispatch"> > <forward name="success" path="mim.pw.list"/> > </action> > > ... 3 more actions .... > > Thanks > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > ===== Java Web Application Architect mapimage.com - Java and GIS struts1.1:tomcat4.1.27:linuxRH8 __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

