How to retain filled form data when 5 jsp pages having hyperlinks for Previous and Next Pages and Last page will have submit button to save all 5 pages data into database.
and form data should be empty only after form data submission successful.
Page1.jsp ---> Page2.jsp ---> Page3.jsp ----> Page4.jsp ----> Page5.jsp (submit).
Suppose if we come back from Page4.jsp to Page3.jsp,Page2.jsp and Page1.jsp then filled data should be appeared in previous pages.