I think i found the answer. Writing the response xml to the output stream
should do it. Right? Any other/better suggestions?

-----Original Message-----
From: Gupta, Sahil [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 19, 2004 4:42 PM
To: 'Struts Users Mailing List'
Subject: Returning xml stream from struts


Hi,

I have an application written in struts and i want to return xml in the
response to the request. The request is being made from a client which makes
http connection to my servlet and posts the request to it. I was wondering
whats the best way to send the response back. 

Option:
Setting the content type of the response header to text/html and sending the
xml in the response. My Question then is:
        How do i put the xml string in the response body?

Any Ideas.

S

---------------------------------------------------------------------
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