Hi there,
in my webapplication you can click on a link which starts an AbstractWizardFormController implementation: First it calls formBackingObject(..), which populates a form (with data from db), then it renders a view with the model. Thats fine.
Then in this JSP page you can enter new data and after clicking "submit" it calls processFinish(..) of the controller, this inserts/updates data in the database. Furthermore within this method it updates the model und returns the same ModelAndView again (the same JSP). In the JSP page the user sees the new updated/inserted data. Then he can enter new data again to insert/update data into db, but exactly here is MY PROBLEM:
After the second "submit" it calls formBackingObject(..) again, but I donīt want to have this! I want to call processFinish(..) to save the new data in my db again instead of formBackingObject(..).
So, the first call of the controller should execute formBackingObject(..) but then every more "submit" only processFinish(..), because the user works always with the same JSP. How is that possible in Spring?? Within struts thats not a problem. So I think I understand something wrong in spring.
Thanks a lot for your help!


Reply With Quote