Re: XML syntax in JSP

2000-07-28 Thread Karl Avedal

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  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:



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:
> >
> > 
> >
> >  > PUBLIC "-//Sun Microsystems Inc.//DTD JavaServer Pages Version 1.1//EN"
> >"http://java.sun.com/products/jsp/dtd/jspcore_1_0.dtd">
> >
> >  >   xmlns:jsp="http://java.sun.com/products/jsp/dtd/jsp_1_0.dtd">
> >
> > 
> > 
> > 
> > 
> > 
> > HELLO WORLD !
> > 
> > 
> > 
> > 
> > 
> >
> > 
> >
> >
> > 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



Re: XML syntax in JSP

2000-07-27 Thread Craig R. McClanahan

Stanley Santiago wrote:

> I think my question has been misunderstood. I am not trying to generate XML from
> the JSP.
>
> I am trying to use the alternative XML -syntax- that chapter 7 of the JSP 1.1
> spec proposes.
>
> For example:
>
> <%@ page ... > could be written as  
>
> <%@ include ... %>  could be written as 
>
> Tomcat does not seem to "recognize" the -jsp xml syntax- and as - jsp standard
> syntax- .
>

At this time, Tomcat does not recognize the XML syntax for a JSP page.  Very early
versions recognized about three quarters of the XML syntax (and, worse, allowed you
to intermix the two styles), but this was pulled out because it was both incomplete
and incorrect.

The XML syntax in the JSP 1.1 spec has some problems that are being worked on for
JSP 1.2.

>
> Thanks,
> Stan
>

Craig McClanahan

===
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



Re: XML syntax in JSP

2000-07-27 Thread Stanley Santiago

I think my question has been misunderstood. I am not trying to generate XML from
the JSP.

I am trying to use the alternative XML -syntax- that chapter 7 of the JSP 1.1
spec proposes.

For example:

<%@ page ... > could be written as  

<%@ include ... %>  could be written as 

Tomcat does not seem to "recognize" the -jsp xml syntax- and as - jsp standard
syntax- .

Thanks,
Stan






Nathan Revo wrote:

> I've been experimenting with XML from JSP's on an IBM WebSphere web server.
> I have been able to produce XML documents in a small way.  These links are
> the best I've found.  They are references for JSP syntax and give GREAT
> clues to programming with JSP.
>
> jsp 1.1
> http://java.sun.com/products/jsp/pdf/card11.pdf
>
> jsp 1.0
> http://java.sun.com/products/jsp/syntax.pdf
>
> jsp 0.9?
> http://as400.rochester.ibm.com/products/websphere/docs/as400v202/wasfrm4.htm
> l
>
> I'm not an XML expert but I don't think the  or  tags should be
> used in an XML document...
>
> Also place one of these lines of code at the top of your JSP page to set the
> content type to XML.
>
> <% content_type="text/xml" %>
> or
> <%@ contentType="text/xml" %>
> or
> <%@ page contentType="text/xml" %>
>
> Attached is a small XML example, compliments of Lycos.  I don't know the
> standards for XML, but I think there needs to be a  tag
> at the top of the file defining the XML tags.  I would post the url to my
> test JSP page, but the JSP/servlet server is internal only.  We are trying
> to determine if it is right for our business.
>
> Good luck.
>
> Nathan
> -Original Message-
> From: Stanley Santiago [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 27, 2000 2: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:
>
> 
>
>  PUBLIC "-//Sun Microsystems Inc.//DTD JavaServer Pages Version 1.1//EN"
>"http://java.sun.com/products/jsp/dtd/jspcore_1_0.dtd">
>
>xmlns:jsp="http://java.sun.com/products/jsp/dtd/jsp_1_0.dtd">
>
> 
> 
> 
> 
> 
> HELLO WORLD !
> 
> 
> 
> 
> 
>
> 
>
> 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
>
>   
> Name: ShortFormatSample.xml
>ShortFormatSample.xmlType: unspecified type (application/octet-stream)
> Encoding: quoted-printable

===
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



Re: XML syntax in JSP

2000-07-27 Thread Kevin Duffey

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:
>
> 
>
>  PUBLIC "-//Sun Microsystems Inc.//DTD JavaServer Pages Version 1.1//EN"
>"http://java.sun.com/products/jsp/dtd/jspcore_1_0.dtd">
>
>xmlns:jsp="http://java.sun.com/products/jsp/dtd/jsp_1_0.dtd">
>
> 
> 
> 
> 
> 
> HELLO WORLD !
> 
> 
> 
> 
> 
>
> 
>
>
> 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
>

===
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



XML syntax in JSP

2000-07-27 Thread Stanley Santiago

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:



http://java.sun.com/products/jsp/dtd/jspcore_1_0.dtd">

http://java.sun.com/products/jsp/dtd/jsp_1_0.dtd">






HELLO WORLD !









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