aspose 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: 12681
    
    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

Java Resources at www.wbrogden.com
madhankumar kumaravelu
Greenhorn

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

Thanks
Madhan
 
Don't get me started about those stupid light bulbs.
 
subject: Usage of REST URI for JSP
 
Similar Threads
how to encode query string.
html:link tag
get the value in a jsp page to the servlet
[S2] IncludeParams with s:url Tag
dyanmic left navigation menu?