Ted,

It works!

Thanks and have a nice weekend.

Ying

-----Original Message-----
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 01, 2001 3:44 PM
To: [EMAIL PROTECTED]
Subject: Re: display xml format


I'm not sure if this is the answer to your question, but if you are
writing directly to the client from Action.perform() you can return null
to tell the ActionServlet that the request has already been fulfilled.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 737-3463.
-- http://www.husted.com/about/struts/

"Wu, Ying (LNG-CIS)" wrote:
> 
> I need to send a string which represents a xml file to browser, I need to
> call response.setContentType("text/xml").  But it is at ActionServlet
level
> and is default to "text/html" thus browser ignores xml tags,
> "<text>long</text>" will only show "long".
> 
> I can do the output at MyAction.perform() level, but how to bypass the
> return part of this method?
> 
> Thanks.
> 
> Ying

Reply via email to