RE: Multiple content types

2009-06-08 Thread Sherif
Thanks Jonathan.. 1. Here's what I did to support lets say .js as an extension to indicate JSON as the content type public class FirstStepsApplication extends Application { /** * Creates a root Restlet that will receive all incoming calls. */ @Override public

Re: Multiple content types

2009-06-08 Thread Jonathan Hall
Hi Sherif, .js is javascript .json is json :0) There is no need to add js or json to the MetadataService as it comes with a bunch of common ones already. Remove that line, and try http://localhost:8080/firstStepsServlet/Hello.json (Notice the JSON) Jon Sherif wrote: Thanks Jonathan.. 1.