I am new to Spring MVC. I have a problem in where user will enter the data in first form and clicks on next. On next page user will enter few more data and clicks on next and on the 3rd page user will submit the data and it will get save into the database. I was using Struts 1.3 but there form data is not getting reset. But in Spring MVC form data is getting refreshed all the time in all the pages and all the data is not reaching to final submission. How to achieve this. I am using latest version of spring MVC i.e. 5.0.7.
Asked
Active
Viewed 202 times
0
-
I believe you are looking like an example of this: https://www.mkyong.com/spring-mvc/spring-mvc-handling-multipage-forms-with-abstractwizardformcontroller/ – Sudhakar Jun 18 '18 at 16:11
-
I have seen this example. I am using fully annotation based. Is it mandatory to extend AbstractWizardFormController to work. If i extend this class can i use @Controller – user995656 Jun 19 '18 at 01:00
-
Yes, still u can use annotations – Sudhakar Jun 19 '18 at 01:09
-
org.springframework.web.servlet.mvc.AbstractWizardFormController This controller class it self is not exists in 5.0.7 release spring-webmvc. – user995656 Jun 19 '18 at 01:55
-
Found the solution from https://stackoverflow.com/questions/4623667/abstractwizardformcontroller-using-annotated-controllers – user995656 Jun 19 '18 at 02:41