The action will be the same as what u give in ur <action path="". no need to pass anything here just the diff between Dispatchaction and mappingda is taht here u need not pass that parameters value in query string that u can directly write in conig files paramter attribute
Since the form bean type is the same for both getCustomer and updateCustomer, you can put any one in the form action. Lets say you use "getCustomer". Your form would then look like this.
Remove the hidden control, it is not required anymore. <html:hidden property="methodToExecute" value="unknownMethod"/>
What do you want to do on the "Cancel" event?
Joined: Sep 09, 2003
Thanks for your suggestions. What you suggested is exactly is what I did and it works.
Regarding the cancel button, I want all fields to be empty after the button is clicked. Your suggestion will be appreciated.
Joined: Aug 18, 2004
<html:reset> should do the trick OR you could directly use an html input control of type reset. <input type="reset" value="Reset" />