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