Re: Sending XML data from action to YUI

2009-01-19 Thread aum strut
erfectly fine, but i think that > is > >>> not > >>> >> the > >>> >> > best approach. > >>> >> > > >>> >> > and due to the current project stage we can't migrate this to > higher > >>

Re: Sending XML data from action to YUI

2009-01-19 Thread Miguel
t;> 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 >>> >> &

Re: Sending XML data from action to YUI

2009-01-19 Thread dusty
y 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 >> &g

Re: Sending XML data from action to YUI

2009-01-19 Thread aum strut
Thanks Musachy for the help i will try to follow what u have suggested On 1/19/09, Musachy Barroso wrote: > > Take a look at the results, they are pretty simple, this is > StreamResult for example: > > > http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/dis

Re: Sending XML data from action to YUI

2009-01-19 Thread Musachy Barroso
Take a look at the results, they are pretty simple, this is StreamResult for example: http://svn.apache.org/viewvc/struts/struts2/trunk/core/src/main/java/org/apache/struts2/dispatcher/StreamResult.java?view=markup all you need to do is implement the Result interface, and then register the result

Re: Sending XML data from action to YUI

2009-01-19 Thread aum strut
Thats what i came up with.. any one have any idea where i can find a good starter so that i can write my own result type? thanks for the help Musachy On 1/19/09, Musachy Barroso wrote: > > You could write your own result that uses XStream, or any other > library to serialize the objects into xml

Re: Sending XML data from action to YUI

2009-01-19 Thread Musachy Barroso
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 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 cu

Sending XML data from action to YUI

2009-01-18 Thread aum strut
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