Grosse MàJ

This commit is contained in:
olivier
2008-11-25 22:11:16 +01:00
parent 53195fdfcd
commit 3e719157ea
2980 changed files with 343846 additions and 0 deletions

View File

@ -0,0 +1,31 @@
<html>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this 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 with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed 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 and
limitations under the License.
-->
<head>
<title>View Source Code</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF">
<p><font color="#0000FF"><a href="basic.jspx"><img src="../../images/execute.gif" align="right" border="0"></a><a
href="../../index.html"><img src="../../images/return.gif" width="24" height="24" align="right" border="0"></a></font></p>
<h3><a href="basic.jspx.html">Source Code for XHTML Basic Example<font color="#0000FF"></a>
</font> </h3>
</body>
</html>

View File

@ -0,0 +1,30 @@
<tags:xhtmlbasic xmlns:tags="urn:jsptagdir:/WEB-INF/tags"
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:directive.page contentType="text/html" />
<head>
<title>JSPX - XHTML Basic Example</title>
</head>
<body>
<h1>JSPX - XHTML Basic Example</h1>
<hr/>
This example illustrates how to use JSPX to produce an XHTML basic
document 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 compatible
with existing XML tools. The XML syntax in JSP 1.2 was awkward and
required &amp;lt;jsp:root&amp;gt; to be the root element of the document.
This is no longer the case in JSP 2.0.
<p/>
This particular example uses a tag file to produce the DOCTYPE and
namespace declarations to make the output of this page a valid XHTML
Basic document.
<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>
</tags:xhtmlbasic>

View File

@ -0,0 +1,32 @@
<html><body><pre>
&lt;tags:xhtmlbasic xmlns:tags="urn:jsptagdir:/WEB-INF/tags"
xmlns:jsp="http://java.sun.com/JSP/Page"
xmlns:fmt="http://java.sun.com/jsp/jstl/fmt"
xmlns="http://www.w3.org/1999/xhtml">
&lt;jsp:directive.page contentType="text/html" />
&lt;head>
&lt;title>JSPX - XHTML Basic Example&lt;/title>
&lt;/head>
&lt;body>
&lt;h1>JSPX - XHTML Basic Example&lt;/h1>
&lt;hr/>
This example illustrates how to use JSPX to produce an XHTML basic
document suitable for use with mobile phones, televisions,
PDAs, vending machines, pagers, car navigation systems,
mobile game machines, digital book readers, smart watches, etc.
&lt;p/>
JSPX lets you create dynamic documents in a pure XML syntax compatible
with existing XML tools. The XML syntax in JSP 1.2 was awkward and
required &amp;amp;lt;jsp:root&amp;amp;gt; to be the root element of the document.
This is no longer the case in JSP 2.0.
&lt;p/>
This particular example uses a tag file to produce the DOCTYPE and
namespace declarations to make the output of this page a valid XHTML
Basic document.
&lt;p/>
Just to prove this is live, here's some dynamic content:
&lt;jsp:useBean id="now" class="java.util.Date" />
&lt;fmt:formatDate value="${now}" pattern="MMMM d, yyyy, H:mm:ss"/>
&lt;/body>
&lt;/tags:xhtmlbasic>
</pre></body></html>

View File

@ -0,0 +1,52 @@
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this 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 with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed 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 and
limitations under the License.
-->
<html>
<head>
<title>JSP 2.0 SVG Example</title>
</head>
<body>
<h1>JSP 2.0 SVG Example</h1>
<hr>
This example uses JSP 2.0's new, simplified JSPX syntax to render a
Scalable Vector Graphics (SVG) document. When you view the source,
notice the lack of a &lt;jsp:root&gt; element! The text to be rendered
can be modified by changing the value of the name parameter.
<p>
SVG has many potential uses, such as searchable images, or images
customized with the name of your site's visitor (e.g. a "Susan's Store"
tab image). JSPX is a natural fit for generating dynamic XML content
such as SVG.
<p>
To execute this example, follow these steps:
<ol>
<li>Download <a href="http://xml.apache.org/batik/index.html">Batik</a>,
or any other SVG viewer.</li>
<li>Copy the following URL:
<a href="http://localhost:8080/examples/jsp/jsp2/jspx/textRotate.jspx?name=JSPX">
http://localhost:8080/examples/jsp/jsp2/jspx/textRotate.jspx?name=JSPX</a>
</li>
<li>Paste the URL into Batik's Location field and press Enter</li>
<li>Customize by changing the name=JSPX parameter</li>
</ol>
<br>
The following is a screenshot of the resulting image, for those that
don't have an SVG viewer:
<blockquote>
<img src="textRotate.jpg" border="1">
</blockquote>
</body>
</html>

View File

@ -0,0 +1,32 @@
<html>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this 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 with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed 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 and
limitations under the License.
-->
<head>
<title>View Source Code</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF">
<p><font color="#0000FF"><a href="textRotate.jspx"><img src="../../images/execute.gif" align="right" border="0"></a><a
href="../../index.html"><img src="../../images/return.gif" width="24" height="24" align="right" border="0"></a></font></p>
<h3><a href="textRotate.jspx.html">Source Code for SVG (Scalable Vector Graphics)
Example<font color="#0000FF"></a>
</font> </h3>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

View File

@ -0,0 +1,36 @@
<!--
- This example is based off the textRotate.svg example that comes
- with Batik. The original example was written by Bill Haneman.
- This version by Mark Roth.
-->
<svg xmlns="http://www.w3.org/2000/svg"
width="450" height="500" viewBox="0 0 450 500"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:fn="http://java.sun.com/jsp/jstl/functions"
xmlns:jsp="http://java.sun.com/JSP/Page">
<jsp:directive.page contentType="image/svg+xml" />
<title>JSP 2.0 JSPX</title>
<!-- select name parameter, or default to JSPX -->
<c:set var="name" value='${empty fn:escapeXml(param["name"]) ? "JSPX" : fn:escapeXml(param["name"])}'/>
<g id="testContent">
<text class="title" x="50%" y="10%" font-size="15" text-anchor="middle" >
JSP 2.0 XML Syntax (.jspx) Demo</text>
<text class="title" x="50%" y="15%" font-size="15" text-anchor="middle" >
Try changing the name parameter!</text>
<g opacity="1.0" transform="translate(225, 250)" id="rotatedText">
<c:forEach var="i" begin="1" end="24">
<jsp:text>
<![CDATA[<g opacity="0.95" transform="scale(1.05) rotate(15)">]]>
</jsp:text>
<text x="0" y="0" transform="scale(1.6, 1.6)" fill="DarkSlateBlue"
text-anchor="middle" font-size="40" font-family="Serif"
id="words">${name}</text>
</c:forEach>
<c:forEach var="i" begin="1" end="24">
<jsp:text><![CDATA[</g>]]></jsp:text>
</c:forEach>
<text style="font-size:75;font-family:Serif;fill:white"
text-anchor="middle">${name}</text>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -0,0 +1,38 @@
<html><body><pre>
&lt;!--
- This example is based off the textRotate.svg example that comes
- with Batik. The original example was written by Bill Haneman.
- This version by Mark Roth.
-->
&lt;svg xmlns="http://www.w3.org/2000/svg"
width="450" height="500" viewBox="0 0 450 500"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:fn="http://java.sun.com/jsp/jstl/functions"
xmlns:jsp="http://java.sun.com/JSP/Page">
&lt;jsp:directive.page contentType="image/svg+xml" />
&lt;title>JSP 2.0 JSPX&lt;/title>
&lt;!-- select name parameter, or default to JSPX -->
&lt;c:set var="name" value='${empty fn:escapeXml(param["name"]) ? "JSPX" : fn:escapeXml(param["name"])}'/>
&lt;g id="testContent">
&lt;text class="title" x="50%" y="10%" font-size="15" text-anchor="middle" >
JSP 2.0 XML Syntax (.jspx) Demo&lt;/text>
&lt;text class="title" x="50%" y="15%" font-size="15" text-anchor="middle" >
Try changing the name parameter!&lt;/text>
&lt;g opacity="1.0" transform="translate(225, 250)" id="rotatedText">
&lt;c:forEach var="i" begin="1" end="24">
&lt;jsp:text>
&lt;![CDATA[&lt;g opacity="0.95" transform="scale(1.05) rotate(15)">]]>
&lt;/jsp:text>
&lt;text x="0" y="0" transform="scale(1.6, 1.6)" fill="DarkSlateBlue"
text-anchor="middle" font-size="40" font-family="Serif"
id="words">${name}&lt;/text>
&lt;/c:forEach>
&lt;c:forEach var="i" begin="1" end="24">
&lt;jsp:text>&lt;![CDATA[&lt;/g>]]>&lt;/jsp:text>
&lt;/c:forEach>
&lt;text style="font-size:75;font-family:Serif;fill:white"
text-anchor="middle">${name}&lt;/text>
&lt;/g>
&lt;/g>
&lt;/svg>
</pre></body></html>