JSP → JSPX – zbavili jsme se starého zápisu JSP i u hlavní stránky (doctype), teď už máme vše v XML syntaxi.
1.1 --- a/java/nekurak.net-web/web/index.jsp Sat Dec 19 22:39:44 2009 +0100
1.2 +++ b/java/nekurak.net-web/web/index.jsp Sun Dec 20 14:19:59 2009 +0100
1.3 @@ -1,13 +1,18 @@
1.4 -<!DOCTYPE html SYSTEM "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
1.5 -<%@page contentType="application/xhtml+xml" pageEncoding="UTF-8"%>
1.6 -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="cs" lang="cs">
1.7 - <head>
1.8 - <meta http-equiv="content-language" content="cs"/>
1.9 - <meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8"/>
1.10 - <title>Nekuřák.net</title>
1.11 - </head>
1.12 - <body>
1.13 - <h1>Nekuřák.net</h1>
1.14 - <p>Začínáme s J2EE…</p>
1.15 - </body>
1.16 -</html>
1.17 \ No newline at end of file
1.18 +<?xml version="1.0" encoding="UTF-8"?>
1.19 +<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0">
1.20 + <jsp:directive.page contentType="application/xhtml+xml"/>
1.21 + <jsp:output doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
1.22 + doctype-root-element="html"
1.23 + omit-xml-declaration="false"/>
1.24 +
1.25 + <html xmlns="http://www.w3.org/1999/xhtml">
1.26 + <head>
1.27 + <title>Nekuřák.net</title>
1.28 + </head>
1.29 + <body>
1.30 + <h1>Nekuřák.net</h1>
1.31 + <p>Začínáme s J2EE…</p>
1.32 + </body>
1.33 + </html>
1.34 +
1.35 +</jsp:root>