home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-tomcat-addon-1.4.9-installer.exe / dynamicattrs.jsp < prev    next >
Encoding:
Text File  |  2004-08-28  |  1.4 KB  |  44 lines

  1. <!--
  2.   Copyright 2004 The Apache Software Foundation
  3.  
  4.   Licensed under the Apache License, Version 2.0 (the "License");
  5.   you may not use this file except in compliance with the License.
  6.   You may obtain a copy of the License at
  7.  
  8.       http://www.apache.org/licenses/LICENSE-2.0
  9.  
  10.   Unless required by applicable law or agreed to in writing, software
  11.   distributed under the License is distributed on an "AS IS" BASIS,
  12.   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13.   See the License for the specific language governing permissions and
  14.   limitations under the License.
  15. -->
  16. <%@ taglib prefix="my" uri="http://jakarta.apache.org/tomcat/jsp2-example-taglib"%>
  17. <html>
  18.   <head>
  19.     <title>JSP 2.0 Examples - Dynamic Attributes</title>
  20.   </head>
  21.   <body>
  22.     <h1>JSP 2.0 Examples - Dynamic Attributes</h1>
  23.     <hr>
  24.     <p>This JSP page invokes a custom tag that accepts a dynamic set 
  25.     of attributes.  The tag echoes the name and value of all attributes
  26.     passed to it.</p>
  27.     <hr>
  28.     <h2>Invocation 1 (six attributes)</h2>
  29.     <ul>
  30.       <my:echoAttributes x="1" y="2" z="3" r="red" g="green" b="blue"/>
  31.     </ul>
  32.     <h2>Invocation 2 (zero attributes)</h2>
  33.     <ul>
  34.       <my:echoAttributes/>
  35.     </ul>
  36.     <h2>Invocation 3 (three attributes)</h2>
  37.     <ul>
  38.       <my:echoAttributes dogName="Scruffy" 
  39.                 catName="Fluffy" 
  40.              blowfishName="Puffy"/>
  41.     </ul>
  42.   </body>
  43. </html>
  44.