Are you trying to display your JSP page as an XML document?  Depending on
what version of JSP you have declare the content type to be "text/xml"

for JSP 0.9?
<%@ content_type="text/xml" %>

for JSP 1.0
<%@ page contentType="text/xml" %>

and I think your lines should look like this:


<?xml version="1.0"?>
<mytag>
.....
</mytag>


-----Original Message-----
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 20, 2000 1:31 PM
To: [EMAIL PROTECTED]
Subject: Re: Model 3 architecture + custom tags


Marco M wrote:

> Hi all,
>         i am trying to write JSP in XML using custom JSP tags....but i am
> experiencing lot of problems!
> i am using tomcat 3.1 and xalan as a XSL Processor
> i don't know how to write the JSP, since i always got back SAX
Exception...
>

Without the details of how your custom tag is written, it's hard to be real
helpful
on this particular problem.  However, I wrote a tag similar to this, which
is in
the "jakarta-taglibs" project at <http://jakarta.apache.org/taglibs>.  Check
out
the "apply" tag in the XSL subproject.

>
> i am writint JSP like this
>
> <mytag:xml>
> <?xml version="1.0"?>
> .....
> </mytag:xml>
>
> i am getting the body content of the tag, and give it with the XSLT
> Processor along with the path of the XSL file (in file:// format)
>
> if anyone has already done something like that, can u help me??
>
> thanx in advance and regards
>         marco
>

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

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