This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
i have one registration page.In the button click event(submit) when user click on submit button a confirmation mail should be sent to the User. User should confirm mailid by clicking on link sent in mail. .
On click of link in email or on copy/paste activate account ( Redirect to activation page)
This link shall expire after clicking once. please suggest me .
I have send the mail. its work fine. but can some one suggest method to activate Account by clicking the link. I am using spring,jsf, jpa,jboss.
Thanks in advance...
Software Engineer(BSC):SCJP 1.5
(Knowledge is power when applied)
During the registration you create a random activation key that you save somewhere (e.g. database). Your activation controller (the one that is called when the user clicks the link) search in the database for this activation key and if it's found mark the user with a flag as 'activated'. If it's not found (or the activation-flag is already set), show an error message.
yes.. In email , i am sending this link "http://localhost:8080/prototype5JTA/faces/activate.jsp?activate=1&acid=70" . so when user click this link in email. i want get that activate id and cid. if i can get those in to jsf manage bean i can update database. any suggestions ?
Thanks.. But when user click email link in email from server side i have to update database. so for that i have to get parameter to java class or implement method when user click url in mail.
? so I don't want get url parameters in jsp page. i want get update database when user click url in email. any suggestion
There's no way to connect to a DB from a link embedded in an email; it will have to go through server processing of some kind via HTTP. If you don't want JSP, fine - use a servlet (better anyway), or PHP, or ASP.Net, or whatever other server-side technology you prefer.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Activate Account by clicking url in email