Re: setting the content type to xml in a jsp page
Posted By:
Anonymous
Posted On:
Monday, May 7, 2007 06:32 AM
So simple :)
Write this snippet before writing any of the xml content into the output.it's better to make it as a first statement in the of your JSP.
<% response.setContentType("text/xml"); %>