You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Daniel Faust <da...@isst.fhg.de> on 2001/10/31 09:43:40 UTC

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:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: jsp xml syntax using?

Posted by Valera Molyakov <va...@kompan.com.ua>.
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" <da...@isst.fhg.de>
To: <to...@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:
<ma...@jakarta.apache.org>
> For additional commands, e-mail:
<ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>