I am trying to submit a form and the onSubmit() method is not getting called and values of the form not getting bound the model bean. Not sure as to where I am messing it up. I am using Spring 2.0
I have a
JSP page that captures some user input, a simple bean that binds these user input values through the controller (extends SimpleFormController) and then displays all the values captured in the success page. This works without any problems and the toString() method of the bean displays the user input values without any issues. However, the success page itself is a another jsp form that again captures user information, has a bean attached to it and a controller (extends SimpleFormController) that does the processing. However the onSubmit() method of this second controller never gets called. Not sure why.
Files:
studentForm.jsp --Displays user input studentName and age
StudentBean.java --Stores user input studentName and age successfully
StudentFormController.java --Once the user submits the form, takes the user to the success page
studentSuccess.jsp --Displays studentName and age on top of the page using by jsp el ${studentBean} and displays another user input DOB and Sex at the bottom of the page
StudentBean2.java --Stores user input DOB and Sex
StudentFormController2.java --Once the user submits the form, takes the user to the second success page (onSubmit() method NEVER GETS CALLED)
finalSuccess.jsp --Displays DOB and Sex using jsp el {studentBean2}
Am I not supposed to extend SimpleFormController ? Please guide.