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]