tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Valera Molyakov" <val...@kompan.com.ua>
Subject Re: jsp xml syntax using?
Date Wed, 31 Oct 2001 10:44:43 GMT
Hi!

Try this example:

<jsp:root xmlns:jsp="http://java.sun.com/jsp_1_2">
    <jsp:directive.page contentType="text/html"/>
    <jsp:directive.page pageEncoding="windows-1251"/>
    <jsp:directive.page import="java.util.Date"/>
    <jsp:text>
        <html>
        <title>Current date</title>
        <body>
        <div>Current date is :</div>
        <div><jsp:expression>(new
Date()).toLocaleString()</jsp:expression></div>
        </body>
        </html>
        </jsp:text>
</jsp:root>

I am read JSP Spetcification 1.2 and write this code.
Its work fine on Tomcat 4.01 under Windows 2000.
But I not understand what for it ?


----- Original Message -----
From: "Daniel Faust" <daniel.faust@isst.fhg.de>
To: <tomcat-user@jakarta.apache.org>
Sent: Wednesday, October 31, 2001 10:43 AM
Subject: jsp xml syntax using?


> Hello,
> I would like use the xml syntax for all direktives, scriptlets and
> expressions in my jsp-pages, e.g.:
> not: <%@ page import="abc.jsp"%>
> but: <jsp:directive.page import=abc.jsp"/>
>
> But the tomcat not interprets this statements. What must i do, for
enabling
> this feature?
> I tryed it that, with Tomcat version 3.2 and 4.0 (standalon version).
>
>
> Thanks for our help
>
>  Daniel Faust
> ___________________________________________________________
>
> Fraunhofer Institut for Software und Systemengineering
> Branch Berlin   | fon: ++49 30 24306-474
> Daniel Faust    | fax: ++49 30 24306-199
> Mollstr. 1      | e-mail : daniel.faust@isst.fhg.de
> D-10178 Berlin  | WWW    : http://www.isst.fhg.de/~dfaust/
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message