Re: setContentType() for xml output

2002-01-09 Thread antony
On Thu, 31 May 2001, 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". >> > 1. Any idea? > >Although the controller servlet

Re: setContentType() for xml output

2001-06-01 Thread Craig R. McClanahan
On Thu, 31 May 2001, 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". > > 1. Any idea? Although the controller servlet sets the d

setContentType() for xml output

2001-05-31 Thread Wu, Ying (LNG-CIS)
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". 1. Any idea? 2. I can do the output at MyAction.perform() level, but how to handle the return type of this method?