| Author |
MappingDispatchAction's JSP code
|
Tokunbo Oke
Ranch Hand
Joined: Sep 09, 2003
Posts: 57
|
|
Please help! Background ========== I have a class that extends the new MappingDispatchAction class . This class has two methods, namely getCustomer and updateCustomer. The corresponding mapping for each method are below: <action path="/getCustomer" type="com.fujimitsu.cargo.gen.CustomerAction" name="cargoForm" scope="request" validate="false" input=".customerDef.jsp" parameter="getCustomer"> <forward name="success" path=".customerDef.jsp" /> </action> <action path="/updateCustomer" type="com.fujimitsu.cargo.gen.CustomerAction" name="cargoForm" scope="request" validate="true" input=".customerDef.jsp" parameter="updateCustomer"> <forward name="success" path=".customerDef.jsp" /> </action> my jsp has three buttons, namelygetCustomer, updateCustomer and cancel. My question: ============ 1. In my JSP, what what should be the value of the ACTION attribute of html:form i.e. <html:form action="???"> (i.e. which mapping should be specified here)? 2. what should the code of the button for excuting a. getCustomer and updateCustomer method be? i.e. <html:submit ??? b. cancel be i.e. <html:cancel ??? Thank you.
|
 |
 |
|
|
subject: MappingDispatchAction's JSP code
|
|
|