Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 771 | blopes | 1 | <!DOCTYPE html><!-- |
| 2 | Licensed to the Apache Software Foundation (ASF) under one or more |
||
| 3 | contributor license agreements. See the NOTICE file distributed with |
||
| 4 | this work for additional information regarding copyright ownership. |
||
| 5 | The ASF licenses this file to You under the Apache License, Version 2.0 |
||
| 6 | (the "License"); you may not use this file except in compliance with |
||
| 7 | the License. You may obtain a copy of the License at |
||
| 8 | |||
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
||
| 10 | |||
| 11 | Unless required by applicable law or agreed to in writing, software |
||
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
||
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||
| 14 | See the License for the specific language governing permissions and |
||
| 15 | limitations under the License. |
||
| 16 | --> |
||
| 17 | <html> |
||
| 18 | <head> |
||
| 19 | <meta charset="UTF-8"> |
||
| 20 | <title>JSP 2.0 SVG Example</title> |
||
| 21 | </head> |
||
| 22 | <body> |
||
| 23 | <h1>JSP 2.0 SVG Example</h1> |
||
| 24 | This example uses JSP 2.0's new, simplified JSPX syntax to render a |
||
| 25 | Scalable Vector Graphics (SVG) document. When you view the source, |
||
| 26 | notice the lack of a <jsp:root> element! The text to be rendered |
||
| 27 | can be modified by changing the value of the name parameter. |
||
| 28 | <p> |
||
| 29 | SVG has many potential uses, such as searchable images, or images |
||
| 30 | customized with the name of your site's visitor (e.g. a "Susan's Store" |
||
| 31 | tab image). JSPX is a natural fit for generating dynamic XML content |
||
| 32 | such as SVG. |
||
| 33 | <p> |
||
| 34 | To execute this example you will need a browser with basic SVG support. Any |
||
| 35 | remotely recent browser should have this. |
||
| 36 | <ol> |
||
| 37 | <li>Use this URL: |
||
| 38 | <a href="textRotate.jspx?name=JSPX">textRotate.jspx?name=JSPX</a></li> |
||
| 39 | <li>Customize by changing the name=JSPX parameter</li> |
||
| 40 | </ol> |
||
| 41 | <p style="margin-top: 2em;"> |
||
| 42 | The following is a screenshot of the resulting image, for those using a |
||
| 43 | browser without SVG support:<br> |
||
| 44 | <img src="textRotate.jpg" alt="[Screenshot image]" style="border: 1px solid #000;"> |
||
| 45 | </body> |
||
| 46 | </html> |