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" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
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 : [EMAIL PROTECTED]
> D-10178 Berlin  | WWW    : http://www.isst.fhg.de/~dfaust/
>
>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to