Solved

How to return user to where they left on in a set of wizard screens

Posted on 2014-01-16
5
250 Views
Last Modified: 2014-01-20
HI, I have a set of three wizard screens in my application. I am trying to implement functionality where if the user is on the 2nd of three screens and for whatever reason decides to go to some other page in the application, upon return to the wizard, they would be taken to the screen where the left off.

I am using the stripes framework and know it has a @session variable, but I don't know if it can be used in this case, at least it hasn't worked from what I've tried.

Does anyone have experience implementing this type of functionality in their java apps? Any advice would be appreciated.

Thanks.
0
Comment
Question by:grnmachine
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 8

Accepted Solution

by:
Surrano earned 500 total points
ID: 39787819
We implemented it by remembering all the choices the user made so far and replaying the wizard according to same choices to the point where they left.

If the decision tree within the wizard is volatile (as was in our case; depending on actual db content), it may lead to unexpected results. This is no problem, though, since if it comes to unexpected results then the original progress in the wizard is obsolete anyway, so it could (and should) be discarded.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 39787934
I don't know the framework(s) (so can't help implementations) but conceptually, a solution would be to save the wizard state in a cookie until it's completed. When the user goes back to a wizard page, the wizard could be resumed.
0
 
LVL 6

Expert Comment

by:Mahesh Bhutkar
ID: 39788249
You have to maintain state of user.

Depends on your requirement, like user may logout or close the screen in between. In such cases you have to store user information along with last visited (2nd screen) screen. For this you have to maintain User_Session table inside DB.

If you have to maintain user state for that particular session then probably you can use SESSIONS.
0
 

Author Closing Comment

by:grnmachine
ID: 39792914
Thanks for the advice. I ultimately ended up doing this as my solution where I just remembered what they have chosen and where they left of in case they jumped out of the wizard for whatever reason. I didn't want to use cookies here as, like you mentioned, if the session expires, they need to restart anyways.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 39793907
?
0

Featured Post

What Is Transaction Monitoring and who needs it?

Synthetic Transaction Monitoring that you need for the day to day, which ensures your business website keeps running optimally, and that there is no downtime to impact your customer experience.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hi,      I've been learning Spring and Jersey for the past few months and to say in simple, i am pretty much impressed with these frameworks. Many developers feel it awkward to implement a RESTful Web Services with such a popular Web Application Fr…
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question