RE: My wizard workflow code.. doesnt work :S
Hi Shirish Thanks for getting back to me :) My usecase is as follows : Page 1 (RegisterSellerActionPage1.java) will let them choose a username and password (it checks the database to see that the username is not taken already, and then checks that the two passwords enter match) Page 2 (RegisterSellerActionPage1.java) will let them enter personal details such as surname and forename (it checks that all fields are entered). Page 3 (RegisterSellerAction.java) will then create the account with the details provided from the previous 2 pages and forward them onto a generic page. I hope this makes sense, cheers Edd P.S i have copied the struts-user list in on this mail, but my work is still blocking the list as spam, so i myself cannot see the list at the moment, hence my private mail to you yesterday. >>> <[EMAIL PROTECTED]> 03/08/04 9:20 AM >>> Hi Edd, I am not exactly sure what is your usecase?If you can explain that I need not understand your action code. You are just trying to implement a wizard flow as follows: page 1 will let them choose a username and password page 2 will let them enter their personal details (forename,surname,email etc) page 3 will let them enter their postal address then i want my Action to pool all the details and create their account and forward them to another page. And you want the data to be shared..And then at the end of flow you want it to be cleared.. Right? Regards, Shirish. N.B:Also if we can share this discussion with struts user mailing list, it might help somebody. -Original Message- From: Edd Dawson [mailto:[EMAIL PROTECTED] Sent: Saturday, March 06, 2004 6:22 PM To: Sakhare, Shirishchandra Subject: Re: My wizard workflow code.. doesnt work :S Hi Shirish I have tried to implement the wizard workflow code but unfortunately its not working for me :S I have included my code and config files in the attached zip, i would really appreciate it if you had a brief scan of it, i am sure with your knowledge you will see what is wrong in no time! :) thanks Edd __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Form based authentication in tomcat with struts
Hi I have successfully set up tomcat to protect various parts of my application using JDBCrealm and form-based-authentication, and it all works fine. Now i have written a system whereby new users can register and it creates them their chosen username and puts them in the right roles in the database. Now what i want to be able to do is have my servlet automatically log them in as the register without the need for them to be redirected to the login-form and re-enter their username and password. I am presuming this is possible as i log my users out by invoking request.getSession().invalidate(); in my logoff servlet, so my question is how do i create their session without using the default login form? Thanks Edd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Struts wizard workflows and stxx
Hi Shirish Thanks for the info, i have downloaded struts-workflow-1-0-3-demo and have it running.. I'd really like to know whether its possible to see the source code behind the action classes in the demo just so i can really see 100% how it all works? thanks Edd >>> [EMAIL PROTECTED] 03/02/04 4:45 PM >>> Hi , What you are looking for may be fits in workflow pattern. We had some discussion about this on the list some time back. the approach you have seen will work well, but the only problem that I can see is the form will stay in session. And being a web application, the user can jump any where.And hence no way to clearly define the end point for workflow or force user to follow the exact page flow. So first decide what is your exact requirements it just one off requirement or you may need to share data across pages in many places.And mainly, putting form bean in session is tolerable for your web application(volume of traffic you are expecting etc .) IF you need an out of box solution for those things, have a look at the following extension. http://www.livinglogic.de/Struts/index.html I am porting the project to source forge and planning a new version as well.But the current version is stable and supports all work flow requirements. If you have any doubts, I can help you with the same. HTH. Regards, Shirish -Original Message- From: Edd Dawson [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 02, 2004 5:26 PM To: [EMAIL PROTECTED] Subject: Struts wizard workflows and stxx Hi I am developing using struts and the stxx extensions that replace the use of beans and jsp's with XML and XSLT. I am working on a site where as users register it asks them for a lot of information.. So i want to split this over a few pages of forms.. page 1 will let them choose a username and password page 2 will let them enter their personal details (forename,surname,email etc) page 3 will let them enter their postal address then i want my Action to pool all the details and create their account and forward them to another page. Now the question is what is the best way to go about this? I have found the following on the jakarta website : == How can I create a wizard workflow? The basic idea is a series of actions with next, back, cancel and finish actions with a common bean. Using a LookupDispatchAction is reccomended as it fits the design pattern well and can be internationalized easily. Since the bean is shared, each choice made will add data to the wizards base of information. A sample of struts-config.xml follows: The pieces of the wizard are as follows: forms.MyWizard.java - the form bean holding the information required actions.MyWizard.java - the actions of the wizard, note the use of LookupDispatchAction allows for one action class with several methods. All the real work will be done in the 'finish' method. mywizard[x].jsp - the data collection jsp's mywizarddone.jsp - the 'success' page mywizardcancel.jsp - the 'cancel' page Is it possible to do this when using stxx? and what would be the setup of my struts-config.xml document for this? Does anyone have any example code that acheives something similar to what i am looking for? Thanks for reading all this! cheers Edd :) - 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] __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts wizard workflows and stxx
Hi I am developing using struts and the stxx extensions that replace the use of beans and jsp's with XML and XSLT. I am working on a site where as users register it asks them for a lot of information.. So i want to split this over a few pages of forms.. page 1 will let them choose a username and password page 2 will let them enter their personal details (forename,surname,email etc) page 3 will let them enter their postal address then i want my Action to pool all the details and create their account and forward them to another page. Now the question is what is the best way to go about this? I have found the following on the jakarta website : == How can I create a wizard workflow? The basic idea is a series of actions with next, back, cancel and finish actions with a common bean. Using a LookupDispatchAction is reccomended as it fits the design pattern well and can be internationalized easily. Since the bean is shared, each choice made will add data to the wizards base of information. A sample of struts-config.xml follows: The pieces of the wizard are as follows: forms.MyWizard.java - the form bean holding the information required actions.MyWizard.java - the actions of the wizard, note the use of LookupDispatchAction allows for one action class with several methods. All the real work will be done in the 'finish' method. mywizard[x].jsp - the data collection jsp's mywizarddone.jsp - the 'success' page mywizardcancel.jsp - the 'cancel' page Is it possible to do this when using stxx? and what would be the setup of my struts-config.xml document for this? Does anyone have any example code that acheives something similar to what i am looking for? Thanks for reading all this! cheers Edd :) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]