Re: how to return xml from struts2 action class

2009-06-11 Thread Wes Wannemacher
I don't think you understood my last post... Dojo is JavaScript, struts actions are Java. A JavaScript object is not the same thing as a Java object... Here is how a Java object looks - 00101001010100100101000100101010100100010010011 Here is how a JavaScript object looks - {'sName':"My Name",'sP

Re: how to return xml from struts2 action class

2009-06-11 Thread Rafael Taboada
Excuse my english please. I'm using Dojo to manage AJAX calls In my jsp, I call an Struts Action with dojo.xhrPost, but my action returns another jsp, but I need to receive a Client bean with some data as a result type public class Client() { private String sName; private String sPhone; } x

Re: how to return xml from struts2 action class

2009-06-11 Thread Wes Wannemacher
An object? Like a hula hoop? Objects exist within memory, but their binary representation is going to differ from platform to platform. Things like XML and JSON allow you to serialize objects to a readable / transmittable format so that they can be deserialized by the receiver. What do you have on

Re: how to return xml from struts2 action class

2009-06-11 Thread Rafael Taboada
Hi! What if I need to return another data apart from XML? I need to return an object. How can I return this type? Thanks in advance. -- Rafael Taboada Software Engineer Cell : +511-992741026 "No creo en el destino pues no me gusta tener la idea de controlar mi vida"

RE: how to return xml from struts2 action class

2009-06-10 Thread Martin Gainty
accepter aucune responsabilité pour le contenu fourni. > Date: Wed, 10 Jun 2009 22:02:13 -0400 > Subject: Re: how to return xml from struts2 action class > From: bhaara...@gmail.com > To: user@struts.apache.org > > I am trying to avoid plugin or another library (dont want

Re: how to return xml from struts2 action class

2009-06-10 Thread Bhaarat Sharma
rni. > > > > > > From: w...@wantii.com > > To: user@struts.apache.org > > Subject: Re: how to return xml from struts2 action class > > Date: Wed, 10 Jun 2009 20:40:07 -0400 > > > > On Wednesday 10 June 2009 08:34:41 pm Bhaarat Sharma wrote: > >

RE: how to return xml from struts2 action class

2009-06-10 Thread Martin Gainty
lement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > From: w...@wantii.com > To: user@struts.apache.org > Subj

Re: how to return xml from struts2 action class

2009-06-10 Thread Wes Wannemacher
On Wednesday 10 June 2009 09:17:23 pm Dave Newton wrote: > Bhaarat Sharma wrote: > > 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

Re: how to return xml from struts2 action class

2009-06-10 Thread Dave Newton
Wes Wannemacher wrote: 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. Stop it!!! Dave - To unsubscribe, e-mail: user-unsubscr...@struts.

Re: how to return xml from struts2 action class

2009-06-10 Thread Dave Newton
Bhaarat Sharma wrote: 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 in the REST plugin.

Re: how to return xml from struts2 action class

2009-06-10 Thread Wes Wannemacher
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 > act

how to return xml from struts2 action class

2009-06-10 Thread Bhaarat Sharma
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?