Assuming I have a web app (Java EE 6), I want to realize the following use case:
- On a generic “register” page, user enters his/her email and submits
- System sends email to user. In this mail, there should be a link to a full registration page
- User follows link, fills out required credentials, and submits
- System stores user in database, and sends confirmation email
- All temporary data is discarded.
The part I am having problems with is mostly step 2. What I need to know is the following:
- What is the best way of setting up a personal registration page for the user? Should I generate a temporary page and link to it? Should I give the user a special cookie? In either case, how can I implement this? No code is needed, I just need some pointers on where to start looking and coding.
EDIT:
A very important question here, no matter how I do it, is the following: How can I generate and deploy a temporary webpage? I am rather new to Java EE, so forgive me if this has an obvious answer.
If the registration page is standard for every user then there is no need in creating a temporary page and linking to it or creating a special cookie etc… Just create the page with the registration form on it and send your clients a link to that.
If you want a special customized registration page for a specific user, then you can just send an e-mail with a link to your client with their information as a query parameter (ie http://yoursite.com/registration?fname=jordan&lname=denison) or you could use something like PrettyFaces to make the URL more readable as well as making it easier to extract those parameters and fire a method with them.