Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Usage of REST URI for JSP

 
madhankumar kumaravelu
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hello

I have an automated mail generated using JavaMail API application.

This mail will have an link as given below:

http://{name}.mail.application/link/{link_id}

Here, {name} and {link_id} are linked in the database .

When i click the above link a web page should be opened (i.e. jsp) with
the following URL:

http://link.mail.application/1234

Here: '1234'(Auto generated) should be specific to the person who clicked the link


Can i use REST URI?

Please let me know with sample code since i dont know how to use.

Thanks
Madhan





 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Logic like that should be accomplished in a servlet which can decipher the URI and forward the request to the correct JSP.

Have you looked into REST toolkits such as Jersey?

Bill
 
madhankumar kumaravelu
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, i have to look in to Jersey.

Thanks
Madhan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic