source: nutchez-0.1/tomcat/webapps/examples/jsp/jsp2/jspx/basic.jspx.html @ 95

Last change on this file since 95 was 66, checked in by waue, 16 years ago

NutchEz - an easy way to nutch

File size: 2.2 KB
Line 
1<html><body><pre>
2&lt;!--
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&lt;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  &lt;jsp:directive.page contentType="text/html" />
23  &lt;head>
24    &lt;title>JSPX - XHTML Basic Example&lt;/title>
25  &lt;/head>
26  &lt;body>
27    &lt;h1>JSPX - XHTML Basic Example&lt;/h1>
28    &lt;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    &lt;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;amp;lt;jsp:root&amp;amp;gt; to be the root element of the document.
37    This is no longer the case in JSP 2.0.
38    &lt;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    &lt;p/>
43    Just to prove this is live, here's some dynamic content:
44    &lt;jsp:useBean id="now" class="java.util.Date" />
45    &lt;fmt:formatDate value="${now}" pattern="MMMM d, yyyy, H:mm:ss"/>
46  &lt;/body>
47&lt;/tags:xhtmlbasic>
48</pre></body></html>
Note: See TracBrowser for help on using the repository browser.