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]