Solved

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

Posted on 2014-01-16
5
243 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
5 Comments
 
LVL 8

Accepted Solution

by:
Surrano earned 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
?
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

772 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now