File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Usage of REST URI for JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Usage of REST URI for JSP" Watch "Usage of REST URI for JSP" New topic
Author

Usage of REST URI for JSP

madhankumar kumaravelu
Greenhorn

Joined: Nov 30, 2011
Posts: 17

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

Joined: Mar 22, 2000
Posts: 12785
    
    5
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

Joined: Nov 30, 2011
Posts: 17
No, i have to look in to Jersey.

Thanks
Madhan
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Usage of REST URI for JSP