This week's book giveaway is in the Design forum.
We're giving away four copies of Design for the Mind and have Victor S. Yocco on-line!
See this thread for details.
Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

to specify format in url

 
sruti vijay
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic