setting the content type to xml in a jsp page
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Manu_A
Posted On:   Monday, May 7, 2007 06:20 AM


Hi Krishna

how could i set the content type to xml in a jsp page

as u suggested



.

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"); %>
About | Sitemap | Contact