I am trying to avoid plugin or another library (dont want to add another jar
file to our lib)

So I think xsl result type will do...
http://struts.apache.org/2.0.6/docs/xsl-result.html

@Martin It will just be a very simple xml like <result> <message>1</message>
</result>




On Wed, Jun 10, 2009 at 9:49 PM, Martin Gainty <mgai...@hotmail.com> wrote:

>
> do you have the Schema or DTD?
>
> Martin Gainty
> ______________________________________________
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
> dient lediglich dem Austausch von Informationen und entfaltet keine
> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
> destinataire prévu, nous te demandons avec bonté que pour satisfaire
> informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie
> de ceci est interdite. Ce message sert à l'information seulement 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
> > 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:
> > > 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
> >
> > --
> >
> > Wes Wannemacher
> > Author - Struts 2 In Practice
> > Includes coverage of Struts 2.1, Spring, JPA, JQuery, Sitemesh and more
> > http://www.manning.com/wannemacher
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > For additional commands, e-mail: user-h...@struts.apache.org
> >
>
> _________________________________________________________________
> Lauren found her dream laptop. Find the PC that’s right for you.
> http://www.microsoft.com/windows/choosepc/?ocid=ftp_val_wl_290

Reply via email to