views:

530

answers:

2

Hi,

I've got my Spring Roo project set up and it's all great, but the views are rendered with Tiles, and I'd love to have them just rendered to JSON (possibly to XML) so that I can use them directly as webservices. Do you have any suggestions to how I should do this "the Roo way"?

Cheers

Nik

+1  A: 

hi,

take a look at the ContentNegotiatingViewResolver

there's a similar question on the Spring forums.

Stefan De Boey
A: 

You can use RooAddon that setup the content negotiation for you: http://tzolov.blogspot.com/2010/05/spring-roo-addons-jaxb2-binding-and.html

tzolov