PDA

View Full Version : Submitting Forms


sherihan
Jan 24th, 2005, 01:57 AM
Hi,
I have a form that contains a submit button.
I created the Form Controller class and I've overidden the onSubmit method in it.
In the jsp page of the form should I add any code to the onsubmit method of the form or does it automatically excute the onSubmit method that is in the controller.
i.e:
Is the following code enough to submit the form?
<form method="post" action="<c:url value="/editInvoice.html"/>">

Thanks in Advance.
Sherihan.

radone
Jan 24th, 2005, 03:18 AM
No - it will be executed automaticaly.
Only what you need to be "editInvoice.html" mapped to the controller (in WEB-INF/*.xml files)

sherihan
Jan 24th, 2005, 04:18 AM
Thanks a lot.
Sherihan.