Hi. I'm trying to generate XML code using JSP. When I try
to open any static XML file in IE5, I get very nice tree
of tags and the XML is easy to view. But when I generate identical
XML code dynamically using JSP, the page is displayed as
common HTML - all XML tags are ignored and I get only the text
bounded in those tags. It seems that it's a matter of xml file
name extension. Static XML file has .xml in its name and so
it's displayed correctly.

In the begining of JSP script I place:

<%@ page contentType="text/xml"%>

so, I don't know what's wrong.

Please, help.

Michal

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to