소스 파일 최초 업로드
This commit is contained in:
31
tomcat/webapps.dist/examples/jsp/jsp2/jspx/basic.html
Normal file
31
tomcat/webapps.dist/examples/jsp/jsp2/jspx/basic.html
Normal file
@@ -0,0 +1,31 @@
|
||||
<!DOCTYPE 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.
|
||||
-->
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>View Source Code</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><a href="basic.jspx"><img src="../../images/execute.gif" alt="Execute" style="border: 0;"></a><a
|
||||
href="../../index.html"><img src="../../images/return.gif" alt="Return" style="border: 0;"></a></p>
|
||||
|
||||
<h3><a href="basic.jspx.html">Source Code for XHTML Basic Example</a></h3>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
48
tomcat/webapps.dist/examples/jsp/jsp2/jspx/basic.jspx
Normal file
48
tomcat/webapps.dist/examples/jsp/jsp2/jspx/basic.jspx
Normal file
@@ -0,0 +1,48 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
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 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:output doctype-root-element="html"
|
||||
doctype-public="-//W3C//DTD XHTML Basic 1.0//EN"
|
||||
doctype-system="http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd"/>
|
||||
<jsp:directive.page contentType="application/xhtml+xml" />
|
||||
<head>
|
||||
<title>JSPX - XHTML Basic Example</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>JSPX - XHTML Basic Example</h1>
|
||||
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 &lt;jsp:root&gt; to be the root element of the document.
|
||||
This is no longer the case in JSP 2.0.
|
||||
<p/>
|
||||
This particular example uses
|
||||
namespace declarations to make the output of this page a valid XHTML
|
||||
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>
|
||||
</html>
|
||||
49
tomcat/webapps.dist/examples/jsp/jsp2/jspx/basic.jspx.html
Normal file
49
tomcat/webapps.dist/examples/jsp/jsp2/jspx/basic.jspx.html
Normal file
@@ -0,0 +1,49 @@
|
||||
<!DOCTYPE html><html><head><meta charset="UTF-8" /><title>Source Code</title></head><body><pre><?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
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 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:output doctype-root-element="html"
|
||||
doctype-public="-//W3C//DTD XHTML Basic 1.0//EN"
|
||||
doctype-system="http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd"/>
|
||||
<jsp:directive.page contentType="application/xhtml+xml" />
|
||||
<head>
|
||||
<title>JSPX - XHTML Basic Example</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>JSPX - XHTML Basic Example</h1>
|
||||
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
|
||||
namespace declarations to make the output of this page a valid XHTML
|
||||
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>
|
||||
</html>
|
||||
</pre></body></html>
|
||||
46
tomcat/webapps.dist/examples/jsp/jsp2/jspx/svgexample.html
Normal file
46
tomcat/webapps.dist/examples/jsp/jsp2/jspx/svgexample.html
Normal file
@@ -0,0 +1,46 @@
|
||||
<!DOCTYPE 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.
|
||||
-->
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>JSP 2.0 SVG Example</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>JSP 2.0 SVG Example</h1>
|
||||
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 <jsp:root> 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 you will need a browser with basic SVG support. Any
|
||||
remotely recent browser should have this.
|
||||
<ol>
|
||||
<li>Use this URL:
|
||||
<a href="textRotate.jspx?name=JSPX">textRotate.jspx?name=JSPX</a></li>
|
||||
<li>Customize by changing the name=JSPX parameter</li>
|
||||
</ol>
|
||||
<p style="margin-top: 2em;">
|
||||
The following is a screenshot of the resulting image, for those using a
|
||||
browser without SVG support:<br>
|
||||
<img src="textRotate.jpg" alt="[Screenshot image]" style="border: 1px solid #000;">
|
||||
</body>
|
||||
</html>
|
||||
32
tomcat/webapps.dist/examples/jsp/jsp2/jspx/textRotate.html
Normal file
32
tomcat/webapps.dist/examples/jsp/jsp2/jspx/textRotate.html
Normal file
@@ -0,0 +1,32 @@
|
||||
<!DOCTYPE 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.
|
||||
-->
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>View Source Code</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<p><a href="textRotate.jspx"><img src="../../images/execute.gif" alt="Execute" style="border: 0;"></a> <a
|
||||
href="../../index.html"><img src="../../images/return.gif" alt="Return" style="border: 0;"></a></p>
|
||||
|
||||
<h3><a href="textRotate.jspx.html">Source Code for SVG (Scalable Vector Graphics)
|
||||
Example</a></h3>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
BIN
tomcat/webapps.dist/examples/jsp/jsp2/jspx/textRotate.jpg
Normal file
BIN
tomcat/webapps.dist/examples/jsp/jsp2/jspx/textRotate.jpg
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 26 KiB |
53
tomcat/webapps.dist/examples/jsp/jsp2/jspx/textRotate.jspx
Normal file
53
tomcat/webapps.dist/examples/jsp/jsp2/jspx/textRotate.jspx
Normal file
@@ -0,0 +1,53 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
<!--
|
||||
- This example is based off the textRotate.svg example that comes
|
||||
- with Apache 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: 2.4 KiB |
@@ -0,0 +1,54 @@
|
||||
<!DOCTYPE html><html><head><meta charset="UTF-8" /><title>Source Code</title></head><body><pre><?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
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.
|
||||
-->
|
||||
<!--
|
||||
- This example is based off the textRotate.svg example that comes
|
||||
- with Apache 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>
|
||||
</pre></body></html>
|
||||
Reference in New Issue
Block a user