[66] | 1 | <!-- |
---|
| 2 | Licensed to the Apache Software Foundation (ASF) under one or more |
---|
| 3 | contributor license agreements. See the NOTICE file distributed with |
---|
| 4 | this work for additional information regarding copyright ownership. |
---|
| 5 | The ASF licenses this file to You under the Apache License, Version 2.0 |
---|
| 6 | (the "License"); you may not use this file except in compliance with |
---|
| 7 | the License. You may obtain a copy of the License at |
---|
| 8 | |
---|
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
---|
| 10 | |
---|
| 11 | Unless required by applicable law or agreed to in writing, software |
---|
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
---|
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
---|
| 14 | See the License for the specific language governing permissions and |
---|
| 15 | limitations under the License. |
---|
| 16 | --> |
---|
| 17 | <tags:xhtmlbasic xmlns:tags="urn:jsptagdir:/WEB-INF/tags" |
---|
| 18 | xmlns:jsp="http://java.sun.com/JSP/Page" |
---|
| 19 | xmlns:fmt="http://java.sun.com/jsp/jstl/fmt" |
---|
| 20 | xmlns="http://www.w3.org/1999/xhtml"> |
---|
| 21 | <jsp:directive.page contentType="text/html" /> |
---|
| 22 | <head> |
---|
| 23 | <title>JSPX - XHTML Basic Example</title> |
---|
| 24 | </head> |
---|
| 25 | <body> |
---|
| 26 | <h1>JSPX - XHTML Basic Example</h1> |
---|
| 27 | <hr/> |
---|
| 28 | This example illustrates how to use JSPX to produce an XHTML basic |
---|
| 29 | document suitable for use with mobile phones, televisions, |
---|
| 30 | PDAs, vending machines, pagers, car navigation systems, |
---|
| 31 | mobile game machines, digital book readers, smart watches, etc. |
---|
| 32 | <p/> |
---|
| 33 | JSPX lets you create dynamic documents in a pure XML syntax compatible |
---|
| 34 | with existing XML tools. The XML syntax in JSP 1.2 was awkward and |
---|
| 35 | required &lt;jsp:root&gt; to be the root element of the document. |
---|
| 36 | This is no longer the case in JSP 2.0. |
---|
| 37 | <p/> |
---|
| 38 | This particular example uses a tag file to produce the DOCTYPE and |
---|
| 39 | namespace declarations to make the output of this page a valid XHTML |
---|
| 40 | Basic document. |
---|
| 41 | <p/> |
---|
| 42 | Just to prove this is live, here's some dynamic content: |
---|
| 43 | <jsp:useBean id="now" class="java.util.Date" /> |
---|
| 44 | <fmt:formatDate value="${now}" pattern="MMMM d, yyyy, H:mm:ss"/> |
---|
| 45 | </body> |
---|
| 46 | </tags:xhtmlbasic> |
---|