Laura Ferguson <allend...@...> writes: > Note: I am a desktop application developer trying to learn web development -- > so any help with these questions would be really appreciated. Many thanks!! > > I am working on email verification and I was trying to determine the best > approach to the following problems, using stripes, jsp's, ActionBeans and > hibernate. > > I've created a secret code mechanism using an md5hex, and I have two > ActionBeans and jsp's (one for registration and one for verification). > > 1) How do I construct a link that will give me the users id and email address > so that I can automatically verify them when they click that link? > > 2) How do I pass the users id and email address from one ActionBean jsp pair > (the registration page) to the second ActionBean jsp pair (the verification > page)? The page needs to be accessible after the session is over -- so I'm > thinking that I should be embedding the users id and email address in the link
Hi Laura -- I was thinking of developing a similar solution for an app I'm developing. I'm a newbe too, BTW, so please don't take the answers below as gospel. For question #1, above, you should just be able to make a call to your action bean passing in the id and e-mail as parameters. As long as your action has get methods for those, it'll strip those out of the request and you should be able to "act" on them within your logic. Not sure I follow question #2. Isn't the user going to register and then get an e-mail? If so, the link to the action (in the e-mail) should take the user to the verification JSP that that action will direct the user to. ------------------------------------------------------------------------------ _______________________________________________ Stripes-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/stripes-users
