struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wes Wannemacher <>
Subject Re: how to return xml from struts2 action class
Date Thu, 11 Jun 2009 00:40:07 GMT
On Wednesday 10 June 2009 08:34:41 pm Bhaarat Sharma wrote:
> Hello,
> Is there some built in functionality in struts2 that would let me return
> xml data from my action class?  If not, I will have to create the xml data
> myself (which I dont mind).  But what will the result-type be for this
> action in my struts.xml?

There is a capable xsl result type built in. It's also quite easy to stream 
xml using the xstream library. Whichever suites your needs.



Wes Wannemacher
Author - Struts 2 In Practice 
Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message