Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Handle multiple jsp pages in session : Spring app

 
Ab kum
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have a situation where i need to go "BACK" and "NEXT" pages based on which page(Total 3 pages) you visit.At the 3 rd page you can submit to Database.at the end of 3 rd page when you submit to DB you need to save all three pages data to DB.
Can somebody help me how to handle this situation in Spring.
I am using JSP,AJAX,Spring MVC
my controller extends MultiActionController.
Thanks in advance.



 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ab kum wrote:Hi,
I have a situation where i need to go "BACK" and "NEXT" pages based on which page(Total 3 pages) you visit.At the 3 rd page you can submit to Database.at the end of 3 rd page when you submit to DB you need to save all three pages data to DB.
Can somebody help me how to handle this situation in Spring.
I am using JSP,AJAX,Spring MVC
my controller extends MultiActionController.
Thanks in advance.





That is exactly what Spring Web Flow is all about. Handling these multi pages requests/flows.

In older versions of Spring you could also use th AbstractWizardFormController class to implement.

Good Luck

Mark
 
Ab kum
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Mark.I will look into Web Flow.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic