You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by t ttt <a_...@hotmail.com> on 2000/10/03 06:42:49 UTC

Does Tomcat 3.1 (win32) support JSP XML Tag

I hope this is the right platform for questions like this :

I can't make the following JSP work in Tomcat 3.1

<jsp:expression>123</jsp:expression>

For that matter,all the XML equivalent tags for expression, scriptlets, 
declaration does not work. Works ok for <jsp:include>, <jsp:useBean..

Is there some undocumented setting I must make?

Appreciate any help here.
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.


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/

Re: Does Tomcat 3.1 (win32) support JSP XML Tag

Posted by Nick Holloway <Ni...@pyrites.org.uk>.
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/