Blame | Last modification | View Log | Download | RSS feed
<?xml version="1.0" encoding="UTF-8"?><!--Licensed to the Apache Software Foundation (ASF) under one or morecontributor license agreements. See the NOTICE file distributed withthis work for additional information regarding copyright ownership.The ASF licenses this file to You under the Apache License, Version 2.0(the "License"); you may not use this file except in compliance withthe License. You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.--><html xmlns:jsp="http://java.sun.com/JSP/Page"xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"xmlns="http://www.w3.org/1999/xhtml"><jsp:output doctype-root-element="html"doctype-public="-//W3C//DTD XHTML Basic 1.0//EN"doctype-system="http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd"/><jsp:directive.page contentType="application/xhtml+xml" /><head><title>JSPX - XHTML Basic Example</title></head><body><h1>JSPX - XHTML Basic Example</h1>This example illustrates how to use JSPX to produce an XHTML basicdocument suitable for use with mobile phones, televisions,PDAs, vending machines, pagers, car navigation systems,mobile game machines, digital book readers, smart watches, etc.<p/>JSPX lets you create dynamic documents in a pure XML syntax compatiblewith existing XML tools. The XML syntax in JSP 1.2 was awkward andrequired &lt;jsp:root&gt; to be the root element of the document.This is no longer the case in JSP 2.0.<p/>This particular example usesnamespace declarations to make the output of this page a valid XHTMLdocument.<p/>Just to prove this is live, here's some dynamic content:<jsp:useBean id="now" class="java.util.Date" /><fmt:formatDate value="${now}" pattern="MMMM d, yyyy, H:mm:ss"/></body></html>