Subversion Repositories Integrator Subversion

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
771 blopes 1
<?xml version="1.0" encoding="UTF-8"?>
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
<html 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:output doctype-root-element="html"
22
              doctype-public="-//W3C//DTD XHTML Basic 1.0//EN"
23
              doctype-system="http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd"/>
24
  <jsp:directive.page contentType="application/xhtml+xml" />
25
  <head>
26
    <title>JSPX - XHTML Basic Example</title>
27
  </head>
28
  <body>
29
    <h1>JSPX - XHTML Basic Example</h1>
30
    This example illustrates how to use JSPX to produce an XHTML basic
31
    document suitable for use with mobile phones, televisions,
32
    PDAs, vending machines, pagers, car navigation systems,
33
    mobile game machines, digital book readers, smart watches, etc.
34
    <p/>
35
    JSPX lets you create dynamic documents in a pure XML syntax compatible
36
    with existing XML tools.  The XML syntax in JSP 1.2 was awkward and
37
    required &amp;lt;jsp:root&amp;gt; to be the root element of the document.
38
    This is no longer the case in JSP 2.0.
39
    <p/>
40
    This particular example uses
41
    namespace declarations to make the output of this page a valid XHTML
42
    document.
43
    <p/>
44
    Just to prove this is live, here's some dynamic content:
45
    <jsp:useBean id="now" class="java.util.Date" />
46
    <fmt:formatDate value="${now}" pattern="MMMM d, yyyy, H:mm:ss"/>
47
  </body>
48
</html>