Philip Weaver wrote:
>
> I'm using Tomcat 3.2.1 and am unable to use the XML syntax of certain JSP
> tags:
>
> <jsp:include page="page.jsp"/> [Error: Invalid jsp:include tag]
> <jsp:scriptlet></jsp:scriptlet>
>
> The same tags work in Resin. What could I be doing wrong?
>
> Thanks,
> Philip
>
> org.apache.jasper.compiler.CompileException:
> /Organize/Tomcat/jakarta-tomcat-3.2.1/webapps/philmaker//index.jsp(27,2)
> Invalid jsp:include tag
> at
> org.apache.jasper.compiler.IncludeGenerator.(IncludeGenerator.java:95)
> [...]
Actually, the problem you have here is not with the XML syntax, it's with
the <jsp:include> action: you must specify flush="true" in JSP 1.1. Resin
may implement the preliminary JSP 1.2 spec, where flush is optional.
The XML syntax described in the JSP 1.1 specification is not complete. It
was only intended to show some details about the future direction. Since
it's incomplete, Tomcat 3.x (as the reference implementation of the spec)
does not support it at all.
The complete syntax will be part of JSP 1.2, and I believe it's already
supported in Tomcat 4.0 Beta (the reference implementation for JSP 1.2).
But be aware that the XML syntax is very verbose and intended primarily
for tools. I recommend that you stick to the regular JSP syntax.
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
Author of JavaServer Pages (O'Reilly), http://TheJSPBook.com
===========================================================================
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