Posts Tagged ‘JSON’
REST Service XML Output in Grails via Content Negotiation
The content negotiation feature in Grails is pretty cool. In a nutshell, it allows you to return different formats based on the request of your page.
A recent project I worked on used Grail’s ability to generate CRUD as GSP pages to provide a basic CMS service, and an Adobe Flex front-end that communicated with Grails via REST services. We needed a solution that will preserve the original GSP html output, as well as the ability to return the data as XML for the REST layer.
Read the rest of this entry »
