java/nekurak.net-web/web/skriptlet.jsp
changeset 11 0412c4dd489d
child 12 fceba17855e9
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/java/nekurak.net-web/web/skriptlet.jsp	Wed Jan 06 20:54:40 2010 +0100
     1.3 @@ -0,0 +1,28 @@
     1.4 +<?xml version="1.0" encoding="UTF-8"?>
     1.5 +<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
     1.6 +    <jsp:directive.page contentType="application/xhtml+xml"/>
     1.7 +    <jsp:output doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
     1.8 +		doctype-root-element="html"
     1.9 +		omit-xml-declaration="false"/>
    1.10 +
    1.11 +    <html xmlns="http://www.w3.org/1999/xhtml">
    1.12 +	<head>
    1.13 +	    <title>Skriptlet</title>
    1.14 +	</head>
    1.15 +	<body>
    1.16 +	    <h1>Skriptlet</h1>
    1.17 +	    <p>
    1.18 +		<!-- Skriptlety jsou moc moc ošklivé a nebudeme je používat -->
    1.19 +		<jsp:scriptlet>
    1.20 +			    out.println("No nazdar! &lt;br/&gt;");
    1.21 +			    out.println("Právě je: " + new java.util.Date());
    1.22 +			    //out.println(request.getParameter("pozdrav")); // tohle nikdy nedělejte :-)
    1.23 +		</jsp:scriptlet>
    1.24 +		<!-- leda výjimečně -->
    1.25 +	    </p>
    1.26 +
    1.27 +
    1.28 +	</body>
    1.29 +    </html>
    1.30 +
    1.31 +</jsp:root>