Hello Kevin and Stanley,

Kevin:

Orion does indeed support that and has for well over a year, or maybe you meant
something else?

Stanley:

As Craig McClanahan pointed out, Tomcat does not support the XML mapping yet and
the mapping is rather immature in JSP 1.1. Wait for JSP 1.2 for this to become
stable.

However, in Orion your page works, but I added a contentType directive to it since
the leading <?xml...> would otherwise fool the JSP engine to send it as text/xml
rather than text/html which could mean that XSLT filters get applied if so
configured. So I changed your page directive line to:

<jsp:directive.page session="false" contentType="text/html"/>

and it works.

For further info on Tomcat specific questions, I recommend you visiting
http://jakarta.apache.org/ and visit Tomcat specific mailing lists.

Regards,
Karl Avedal
The Orion team (http://www.orionserver.com)

Kevin Duffey wrote:

> The browser doesn't understand it from what I can tell. I did this too and
> had the same problem in JRUN, Resin and Orion. Generally you would have JSP
> output XML so that you can feed that xml output to an XSLT engine which
> would then translate it to HTML. Otherwise, your sending XML to the browser
> and until MSIE 5.5 (or 6.0 is it?) and later versions of Netscape adobt XML
> output, they wont render it. I think the HTML 5.0 standard..if it ever comes
> out, will require xml syntax for html tags, and for browsers to render
> xml..who knows though.
>
> > -----Original Message-----
> > From: A mailing list about Java Server Pages specification and reference
> > [mailto:[EMAIL PROTECTED]]On Behalf Of Stanley Santiago
> > Sent: Thursday, July 27, 2000 1:56 PM
> > To: [EMAIL PROTECTED]
> > Subject: XML syntax in JSP
> >
> >
> > Hi,
> >
> > I am trying to use XML syntax  in my JSP, running under Tomcat 3.1.
> >
> > Tomcat doesn't seem to understand and parse the XML tags and just
> > writes to it to the browser.
> > Has anyone tried this before ?
> >
> > Example:
> >
> > <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
> >
> > <! DOCTYPE root
> > PUBLIC "-//Sun Microsystems Inc.//DTD JavaServer Pages Version 1.1//EN"
> >        "http://java.sun.com/products/jsp/dtd/jspcore_1_0.dtd">
> >
> > <jsp:root
> >   xmlns:jsp="http://java.sun.com/products/jsp/dtd/jsp_1_0.dtd">
> >
> > <html>
> > <jsp:directive.page session="false"/>
> > <body bgcolor="white">
> > <font size=4>
> > <ul>
> > <li>HELLO WORLD !
> > </li>
> > </ul>
> > </font>
> > </body>
> > </html>
> >
> > </jsp:root>
> >
> >
> > Thanks,
> > Stan
> >

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
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