Using GWT to output XML, JSON and regular HTML

Posted by Artem on Stack Overflow See other posts from Stack Overflow or by Artem
Published on 2010-04-19T13:51:24Z Indexed on 2010/04/19 13:53 UTC
Read the original article Hit count: 275

Filed under:
|

Sorry, this is a very basic question, as we are just getting started with exploring GWT.

We would like to know if it's easy and possible to get GWT to "output" XML, JSON and regular HTML. I would like to know this because ideally we would port parts of our backends over slowly, and it would be nice to drop in GWT in place of AJAX wherever we need it during the transition period.

Places that we would like to be able to use:

1) We have a pure XML page that we return to our client (mobile) app and right now this is handled through Spring MVC with a nice template. What's the best replacement for this?

2) We have a regular AJAX page that makes async requests and expects replies in JSON. Can we easily replace this backend?

3) We have some regular webpages where we use templates to output them, and we would like to first switch them over in the simplest possible way, without converting them to the regular GWT UI framework.

Thanks!

© Stack Overflow or respective owner

Related posts about gwt

Related posts about Xml