Hi,
I have a requirement wherein I am taking the user input in 7 steps. Each step is a
JSP.
I am wondering what is the best approach with respect to saving the data.
a) Should I save the data in session as the user moves from step1 to step7 and then save it in the database. This approach will put huge data in the session. Though the user base of this application is only 5-6 users.
b) Save it everytime in the database as the user moves from step1 to step7. The problem with this approach is what if user decides not to complete all the steps and leave after step4 then I will have to rollback the data for Step1 to Step4.
Secondly, currently we have given Next button on each JSP page to move to next Step. Can this also be implemented in tabs wherein each tab will be a seperate JSP page?
I am using
Struts framework to develop the application.
Please advise.