You could write your own result that uses XStream, or any other library to serialize the objects into xml.
musachy On Mon, Jan 19, 2009 at 2:27 AM, aum strut <aum.str...@gmail.com> wrote: > Hi All, > > I developing ajax based application using struts 2.0.11 > for ajax we are using YUI for making ajax based call and currently its > working fine for me.For one case i need to send XML created in my business > logic to the front end > > The call will be created using YUI API and it must get XML which is getting > created in Business logic in in order to fullfill its requirement. > > For experimentation i used the result type "Stream" and put the generated > XML in the buffer and it worked perfectly fine, but i think that is not the > best approach. > > and due to the current project stage we can't migrate this to higher > version, so the probability of using REST plugin or any other option is not > there > > Can an one suggest me the best approach so that we can return XML to the YUI > ajax call > > thanks in advance > -aum > -- "Hey you! Would you help me to carry the stone?" Pink Floyd --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org