| [66] | 1 | <html><body><pre> | 
|---|
|  | 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 | <%@ taglib prefix="my" uri="http://jakarta.apache.org/tomcat/jsp2-example-taglib"%> | 
|---|
|  | 19 | <html> | 
|---|
|  | 20 | <head> | 
|---|
|  | 21 | <title>JSP 2.0 Examples - Dynamic Attributes</title> | 
|---|
|  | 22 | </head> | 
|---|
|  | 23 | <body> | 
|---|
|  | 24 | <h1>JSP 2.0 Examples - Dynamic Attributes</h1> | 
|---|
|  | 25 | <hr> | 
|---|
|  | 26 | <p>This JSP page invokes a custom tag that accepts a dynamic set | 
|---|
|  | 27 | of attributes.  The tag echoes the name and value of all attributes | 
|---|
|  | 28 | passed to it.</p> | 
|---|
|  | 29 | <hr> | 
|---|
|  | 30 | <h2>Invocation 1 (six attributes)</h2> | 
|---|
|  | 31 | <ul> | 
|---|
|  | 32 | <my:echoAttributes x="1" y="2" z="3" r="red" g="green" b="blue"/> | 
|---|
|  | 33 | </ul> | 
|---|
|  | 34 | <h2>Invocation 2 (zero attributes)</h2> | 
|---|
|  | 35 | <ul> | 
|---|
|  | 36 | <my:echoAttributes/> | 
|---|
|  | 37 | </ul> | 
|---|
|  | 38 | <h2>Invocation 3 (three attributes)</h2> | 
|---|
|  | 39 | <ul> | 
|---|
|  | 40 | <my:echoAttributes dogName="Scruffy" | 
|---|
|  | 41 | catName="Fluffy" | 
|---|
|  | 42 | blowfishName="Puffy"/> | 
|---|
|  | 43 | </ul> | 
|---|
|  | 44 | </body> | 
|---|
|  | 45 | </html> | 
|---|
|  | 46 | </pre></body></html> | 
|---|