wood burning stoves 2.0*
The moose likes Web Services and the fly likes to specify format in url Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "to specify format in url" Watch "to specify format in url" New topic
Author

to specify format in url

sruti vijay
Greenhorn

Joined: Nov 18, 2012
Posts: 4
Hi,

My url appears in the following format

http://localhost:8080//resources/test/user/2
where the details of the user with id=2 will be published in xml format

i want my url to appear in the following format

http://localhost:8080//resources/test/user/2.xml to publish in xml format

and

http://localhost:8080//resources/test/user/2.json to publ;ish in json format

please help me.

Thanks and Regards
Sruthi
 
Don't get me started about those stupid light bulbs.
 
subject: to specify format in url
 
Similar Threads
URL pattern
Session Verification
HTTP Status 404
welcome file list
How to set conf file file