Re: return ajax text or xml

2008-08-21 Thread Dave Newton
--- On Thu, 8/21/08, cpanon wrote: > What is the best way to return simple text/html [...] Isn't that what a JSP result returns in the first place? > [...] or an xml document from an action? All you really need to do is set the response header. You can do it manually in a JSP file, or do it in

Re: return ajax text or xml

2008-08-21 Thread James Neff
cpanon wrote: Hello What is the best way to return simple text/html or an xml document from an action? Do I have to forward to a servlet and open an output stream and write the stream? Is there a simpler/better way? tia. I'm not sure what your asking but just recently I have added a pr