[66] | 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 | |
---|
| 19 | <taglib xmlns="http://java.sun.com/xml/ns/j2ee" |
---|
| 20 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
---|
| 21 | xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd" |
---|
| 22 | version="2.0"> |
---|
| 23 | <description>A tag library exercising SimpleTag handlers.</description> |
---|
| 24 | <tlib-version>1.0</tlib-version> |
---|
| 25 | <short-name>SimpleTagLibrary</short-name> |
---|
| 26 | <uri>/SimpleTagLibrary</uri> |
---|
| 27 | <tag> |
---|
| 28 | <description>Outputs Hello, World</description> |
---|
| 29 | <name>helloWorld</name> |
---|
| 30 | <tag-class>jsp2.examples.simpletag.HelloWorldSimpleTag</tag-class> |
---|
| 31 | <body-content>empty</body-content> |
---|
| 32 | </tag> |
---|
| 33 | <tag> |
---|
| 34 | <description>Repeats the body of the tag 'num' times</description> |
---|
| 35 | <name>repeat</name> |
---|
| 36 | <tag-class>jsp2.examples.simpletag.RepeatSimpleTag</tag-class> |
---|
| 37 | <body-content>scriptless</body-content> |
---|
| 38 | <variable> |
---|
| 39 | <description>Current invocation count (1 to num)</description> |
---|
| 40 | <name-given>count</name-given> |
---|
| 41 | </variable> |
---|
| 42 | <attribute> |
---|
| 43 | <name>num</name> |
---|
| 44 | <required>true</required> |
---|
| 45 | <rtexprvalue>true</rtexprvalue> |
---|
| 46 | </attribute> |
---|
| 47 | </tag> |
---|
| 48 | <tag> |
---|
| 49 | <description>Populates the page context with a BookBean</description> |
---|
| 50 | <name>findBook</name> |
---|
| 51 | <tag-class>jsp2.examples.simpletag.FindBookSimpleTag</tag-class> |
---|
| 52 | <body-content>empty</body-content> |
---|
| 53 | <attribute> |
---|
| 54 | <name>var</name> |
---|
| 55 | <required>true</required> |
---|
| 56 | <rtexprvalue>true</rtexprvalue> |
---|
| 57 | </attribute> |
---|
| 58 | </tag> |
---|
| 59 | <tag> |
---|
| 60 | <description> |
---|
| 61 | Takes 3 fragments and invokes them in a random order |
---|
| 62 | </description> |
---|
| 63 | <name>shuffle</name> |
---|
| 64 | <tag-class>jsp2.examples.simpletag.ShuffleSimpleTag</tag-class> |
---|
| 65 | <body-content>empty</body-content> |
---|
| 66 | <attribute> |
---|
| 67 | <name>fragment1</name> |
---|
| 68 | <required>true</required> |
---|
| 69 | <fragment>true</fragment> |
---|
| 70 | </attribute> |
---|
| 71 | <attribute> |
---|
| 72 | <name>fragment2</name> |
---|
| 73 | <required>true</required> |
---|
| 74 | <fragment>true</fragment> |
---|
| 75 | </attribute> |
---|
| 76 | <attribute> |
---|
| 77 | <name>fragment3</name> |
---|
| 78 | <required>true</required> |
---|
| 79 | <fragment>true</fragment> |
---|
| 80 | </attribute> |
---|
| 81 | </tag> |
---|
| 82 | <tag> |
---|
| 83 | <description>Outputs a colored tile</description> |
---|
| 84 | <name>tile</name> |
---|
| 85 | <tag-class>jsp2.examples.simpletag.TileSimpleTag</tag-class> |
---|
| 86 | <body-content>empty</body-content> |
---|
| 87 | <attribute> |
---|
| 88 | <name>color</name> |
---|
| 89 | <required>true</required> |
---|
| 90 | </attribute> |
---|
| 91 | <attribute> |
---|
| 92 | <name>label</name> |
---|
| 93 | <required>true</required> |
---|
| 94 | </attribute> |
---|
| 95 | </tag> |
---|
| 96 | <tag> |
---|
| 97 | <description> |
---|
| 98 | Tag that echoes all its attributes and body content |
---|
| 99 | </description> |
---|
| 100 | <name>echoAttributes</name> |
---|
| 101 | <tag-class>jsp2.examples.simpletag.EchoAttributesTag</tag-class> |
---|
| 102 | <body-content>empty</body-content> |
---|
| 103 | <dynamic-attributes>true</dynamic-attributes> |
---|
| 104 | </tag> |
---|
| 105 | <function> |
---|
| 106 | <description>Reverses the characters in the given String</description> |
---|
| 107 | <name>reverse</name> |
---|
| 108 | <function-class>jsp2.examples.el.Functions</function-class> |
---|
| 109 | <function-signature>java.lang.String reverse( java.lang.String )</function-signature> |
---|
| 110 | </function> |
---|
| 111 | <function> |
---|
| 112 | <description>Counts the number of vowels (a,e,i,o,u) in the given String</description> |
---|
| 113 | <name>countVowels</name> |
---|
| 114 | <function-class>jsp2.examples.el.Functions</function-class> |
---|
| 115 | <function-signature>java.lang.String numVowels( java.lang.String )</function-signature> |
---|
| 116 | </function> |
---|
| 117 | <function> |
---|
| 118 | <description>Converts the string to all caps</description> |
---|
| 119 | <name>caps</name> |
---|
| 120 | <function-class>jsp2.examples.el.Functions</function-class> |
---|
| 121 | <function-signature>java.lang.String caps( java.lang.String )</function-signature> |
---|
| 122 | </function> |
---|
| 123 | </taglib> |
---|
| 124 | |
---|