Re: How to download a JSON object from my GWT server?

2010-04-09 Thread lineman78
I would suggest using jersey services with a custom services context resolver. Put the following file in the same package as your jersey services and replace **SerializableObject** with all of your root elements. Then check out the getting started guide on jersey.dev.java.net @Provider public ab

Re: How to download a JSON object from my GWT server?

2010-04-09 Thread Sripathi Krishnan
You need to set the HTTP header *addHeader("Content-Disposition","attachment; filename=some-file-name.json"* ); --Sri On 8 April 2010 23:36, Sherry wrote: > Hi, > I would like to have my application return a JSON object for > download. > > I'm trying to simulate the behavior that happens whe

How to download a JSON object from my GWT server?

2010-04-09 Thread Sherry
Hi, I would like to have my application return a JSON object for download. I'm trying to simulate the behavior that happens when I access the page: "http://search.twitter.com/trends/current.json?exclude=hashtags"; in which the Chrome browser automatically downloads a file current.json . I've tried