Thank you David.
I think I will forward to xml directly from my Action class

Konstantina
----- Original Message -----
From: "David Graham" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, April 03, 2003 6:06 PM
Subject: Re: HTTP response as XML


> It is possible.  It's commonly referred to as XML over HTTP.  HTTP is the
> protocol or language that clients and servers speak and XML, HTML, GIFs,
> JPEGs, etc. can be delivered over that protocol.  HTTP responses set a
> Content-Type header like Content-Type: text/html or Content-Type: text/xml
> in your case.  There are JSTL tags that generate XML in JSPs or you can
> generate the XML in an Action and send it back.
>
> David
>
>
>
> >From: "Konstantina Stamopoulou" <[EMAIL PROTECTED]>
> >Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
> >Subject: HTTP response as XML
> >Date: Thu, 3 Apr 2003 17:25:09 +0300
> >
> >Hello everyone,
> >I have been using STruts for a while and it has solved a lot of my
previous
> >problems for example having long .jsps that included all the logic. Now I
> >have been asked to use struts, which will receive the requst and will
> >generate .xml   instead of html as a response. This .xml will be parsed
by
> >another application. First of all is this possible? Make an http requset
> >which will be handled by struts which will return xml code? If yes how is
> >this possible? Do I have to implement my own custom tags? Has anyone
> >implemented something similar?
> >An xml file that I might generate will have the following form:
> >
> ><ipg width="600" height="480" img="background.jpg">
> >
> ><navigation left="20" top="20" width="200" height="300">
> ><button top="0"  width="200" height="50" img="background.jpg" txt="Live
TV"
> >action="TVCatalog" target="displayarea"/>
> ><button top="100" width="200" height="50"  img="background.jpg"
> >txt="E-mail" action="showEmail" target="displayarea"/>
> ><button top="200"  width="200" height="50" img="background.jpg"
txt="Music"
> >action="musicCatalog" target="displayarea"/>
> ></navigation>
> ><img left="400" align="right" img="background.jpg"/>
> ><banner top="400" width="640" font="verdana" size="40pt" color="white"
> >bgcolor="transparent" href="http://www.news.com";> </banner>
> ><block left="250" top="200" width="260" height="200"
> >name="displayarea">This is a test. </block>
> ></ipg>
> >
> >I could use any available help!
> >
> >Thank U in advance!
> >Konstantina
>
>
> _________________________________________________________________
> STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
> http://join.msn.com/?page=features/junkmail
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to