Hi,

    I am developing a registration form using tapestry, in that I have to
sent email to user for verification and I have done that.

Now I want to add a java variable value to the href component how can I do
that?

MimeMessageHelper helper = new MimeMessageHelper(message, true);
helper.setFrom(simpleMailMessage.getFrom());
helper.setTo(to);
helper.setSubject(simpleMailMessage.getSubject());
message.setContent(content + "<html><body> <br/> <p> Thank you for
registering. </p>" +
"<br/> Please click on the confirmation link below to activate your account:
<br/>" + 
" http://10.0.1.17:8080/Registration  Click here   <br/><br/>
</body></html>", "text/html");

In that I've coded the target url like below,

http://10.0.1.17:8080/Registration  Click here  

but my need is I appended a randomvalue each & every submission at the end
and passed that value to this page, and want to invoke when the user clicks
the link click here 

String randomValue = String.valueOf(random.nextInt());
String activationLink =  "http://10.0.1.17:8080/Registration"; +
"?uniqueValue=" + randomValue;

here  Click here  

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/How-to-add-a-java-variable-value-in-href-tp5474413p5474413.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to