How can I check the current app state? Could you direct me to some resources?
Thanks, semaj Michael Jouravlev wrote: > > Do you really care if one instance of the wizard stays in the session? > If yes then you have to remove it yourself. You should know better > when it is appropriate to remove it based on your application state. > Struts form is just an object in the session map, so you can remove it > from session manually, this is not that big a deal. > > You can add your own command into the chain of commands, so every time > your app receives a request you would check current app state and > remove objects that are not valid for that state. > > Michael. > > On 6/26/07, semaj <[EMAIL PROTECTED]> wrote: >> >> Then, how can I solve this problem in struts 1.3.8? Don't you think >> nobody >> have face this issue? If yes, then they have not solve the problem?? >> >> >> Michael Jouravlev wrote: >> > >> > No, it will not. Unless you defined the form in Rollover scope ;-) >> > http://wiki.apache.org/struts/RolloverScope >> > >> > After 1.3.9 is released, I will check in Rollover scope features into >> > main Struts codebase. >> > >> > Michael. >> > >> > On 6/25/07, semaj <[EMAIL PROTECTED]> wrote: >> >> >> >> Hey Michael, >> >> >> >> Thank you for your reply. I would like to ask you one more question. >> Will >> >> it >> >> remove the form from the session if the user navigates to some other >> >> pages >> >> by clicking one of the menu items? Let's say the user is in sign up >> >> wizard, >> >> fills out first and second steps, but he changes his mind and clicks >> on >> >> the >> >> menu items to go to other pages without completing the wizard >> operation. >> >> Will the easy wizard remove the form from session? >> >> >> >> Thank you, >> >> semaj >> >> >> >> >> >> Michael Jouravlev wrote: >> >> > >> >> > Try this: >> >> http://downloads.sourceforge.net/struts/dialogs-samples-2.0.war >> >> > I am sorry the online demos are not working at this moment. When you >> >> > start this demo app, select "New User Signup Wizard" link on that >> >> > start page, then check out the wizard. Notice, that the URL does not >> >> > change after you submit a request, also you can reload a page >> anytime, >> >> > also you cannot directly navigate to a specific page of a wizard, >> >> > which ensures that the user interface and wizard state machine are >> >> > kept in sync. >> >> > >> >> > The wizard uses Easy Wizard classes (net.jspcontrols.wizard.* ), you >> >> > don't have to use them, but they simplify things. The source code >> for >> >> > Easy Wizard if you need it can be found at: >> >> > http://downloads.sourceforge.net/struts/dialogs-2.0.zip This archive >> >> > contains the same sample application as well along with build files. >> >> > Some docs on Easy Wizard can be found at: >> >> > https://easywizard.dev.java.net/ >> >> > >> >> > Michael. >> >> > >> >> > On 6/25/07, semaj <[EMAIL PROTECTED]> wrote: >> >> >> >> >> >> It's been a week; have not found any solutions... any idea guys!! >> >> >> >> >> >> semaj wrote: >> >> >> > >> >> >> > Hi there, >> >> >> > >> >> >> > May be someone has already solved this problem. I need to >> implement >> >> a >> >> >> > wizard like page flow in my strut web application. >> >> >> > >> >> >> > This is what I've done: >> >> >> > 1. Created one big action form and put it in session scope. >> >> >> > 2. Created action class extending DispatchAction >> >> >> > 3. Created several jsps. >> >> >> > >> >> >> > I successfully implemented the logic with previous, next, finish, >> >> and >> >> >> > cancel button. I removed the action form from session if the user >> >> >> clicks >> >> >> > cancel or finish buttons. The only problem i'm having is how to >> >> remove >> >> >> the >> >> >> > action form from session if the user navigates to other pages >> from >> >> menu >> >> >> > bar (without clicking cancel or finish buttons). >> >> >> > >> >> >> > The other problem I'm having is how to navigate the user to first >> >> step >> >> >> if >> >> >> > he/she directly types the url of other subsequent pages. >> >> >> > >> >> >> > I think i'm not the first person to face this problem. someone >> must >> >> >> have >> >> >> > already implemented this. Any hint will be greatly appreciated!! >> >> >> > >> >> >> > There are different third party plugins for struts wizard. Do >> they >> >> >> solve >> >> >> > my problems? >> >> >> > >> >> >> > Thanks, >> >> >> > semaj >> >> >> > >> >> >> > >> >> >> >> >> >> -- >> >> >> View this message in context: >> >> >> >> >> >> http://www.nabble.com/Implementing-wizard-like-interface-in-struts-tf3954707.html#a11294298 >> >> >> Sent from the Struts - User mailing list archive at Nabble.com. >> >> >> >> >> >> >> >> >> >> --------------------------------------------------------------------- >> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> >> >> >> >> > >> >> > >> --------------------------------------------------------------------- >> >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> > For additional commands, e-mail: [EMAIL PROTECTED] >> >> > >> >> > >> >> > >> >> >> >> -- >> >> View this message in context: >> >> >> http://www.nabble.com/Implementing-wizard-like-interface-in-struts-tf3954707.html#a11299698 >> >> Sent from the Struts - User mailing list archive at Nabble.com. >> >> >> >> >> >> --------------------------------------------------------------------- >> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> >> For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > --------------------------------------------------------------------- >> > To unsubscribe, e-mail: [EMAIL PROTECTED] >> > For additional commands, e-mail: [EMAIL PROTECTED] >> > >> > >> > >> >> -- >> View this message in context: >> http://www.nabble.com/Implementing-wizard-like-interface-in-struts-tf3954707.html#a11309597 >> Sent from the Struts - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Implementing-wizard-like-interface-in-struts-tf3954707.html#a11310525 Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]