File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Groovy and the fly likes render JSON in grails Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Languages » Groovy
Bookmark "render JSON in grails" Watch "render JSON in grails" New topic
Author

render JSON in grails

Maharaj thak
Greenhorn

Joined: Jul 29, 2010
Posts: 27
Hi
I have an index.gsp page where I am trying to implement jquery autocomplete.My action is called Search which is in SearchController.If I do
render someObject as JSON does the json data go back to index.gsp or do I have to create search.gsp.
Any help would be greatl appreciated.

Regards
Mauji Thak

David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

It goes back to whatever made the request: if it's an Ajax request it'll go back to the Ajax request object and its handlers.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: render JSON in grails
 
Similar Threads
Actions behaving strangely
About SpringSecurity plugin (again)
JSON+Jquery
Best way to load data file into an array
Old request data is still there.