You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Nick Holloway <Ni...@pyrites.org.uk> on 2000/10/03 14:18:32 UTC
Re: Does Tomcat 3.1 (win32) support JSP XML Tag
a_seed1@hotmail.com (t ttt) writes:
> I can't make the following JSP work in Tomcat 3.1
>
> <jsp:expression>123</jsp:expression>
The XML representation is an alternative to the "standard syntax" JSP.
The two can not be mixed. So you can have "<jsp:include>" as this is
part of the JSP syntax, but not "<jsp:expression>", as this is what
"<%=...%>" is transformed into.
It is only containers that implement JSP 1.2 that would accept the pure
XML format, and Tomcat 3.1 implements JSP 1.1.
This is clearer if you read the public draft of the JSP 1.2 specification.
All JSP pages have an equivalent XML document. This equivalent XML
document is the view of the JSP page that is exposed to the translation
phase (see below).
A JSP page can also be written directly as its equivalent XML document.
Unlike in JSP 1.0 and JSP 1.1 containers, the XML document itself can
be delivered to a JSP container for processing.
It is not valid to intermix "standard syntax" and XML syntax inside
the same source file.
--
`O O' | Nick.Holloway@pyrites.org.uk
// ^ \\ | http://www.pyrites.org.uk/
Re: Does Tomcat 3.1 (win32) support JSP XML Tag
Posted by Pierre Delisle <pi...@sun.com>.
Tomcat 4.0 is meant to support Servlet 2.3 and JSP 1.2.
There currently is a basis of support for JSP pages as XML
documents in Tomcat 4.0. Still more work to be done though...
-- Pierre
Nick Holloway wrote:
>
> a_seed1@hotmail.com (t ttt) writes:
> > I can't make the following JSP work in Tomcat 3.1
> >
> > <jsp:expression>123</jsp:expression>
>
> The XML representation is an alternative to the "standard syntax" JSP.
> The two can not be mixed. So you can have "<jsp:include>" as this is
> part of the JSP syntax, but not "<jsp:expression>", as this is what
> "<%=...%>" is transformed into.
>
> It is only containers that implement JSP 1.2 that would accept the pure
> XML format, and Tomcat 3.1 implements JSP 1.1.
>
> This is clearer if you read the public draft of the JSP 1.2 specification.
>
> All JSP pages have an equivalent XML document. This equivalent XML
> document is the view of the JSP page that is exposed to the translation
> phase (see below).
>
> A JSP page can also be written directly as its equivalent XML document.
> Unlike in JSP 1.0 and JSP 1.1 containers, the XML document itself can
> be delivered to a JSP container for processing.
>
> It is not valid to intermix "standard syntax" and XML syntax inside
> the same source file.
>
> --
> `O O' | Nick.Holloway@pyrites.org.uk
> // ^ \\ | http://www.pyrites.org.uk/