source: nutchez-0.1/tomcat/webapps/examples/jsp/jsp2/misc/dynamicattrs.jsp.html @ 66

Last change on this file since 66 was 66, checked in by waue, 16 years ago

NutchEz - an easy way to nutch

File size: 1.7 KB
Line 
1<html><body><pre>
2&lt;!--
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&lt;%@ taglib prefix="my" uri="http://jakarta.apache.org/tomcat/jsp2-example-taglib"%>
19&lt;html>
20  &lt;head>
21    &lt;title>JSP 2.0 Examples - Dynamic Attributes&lt;/title>
22  &lt;/head>
23  &lt;body>
24    &lt;h1>JSP 2.0 Examples - Dynamic Attributes&lt;/h1>
25    &lt;hr>
26    &lt;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.&lt;/p>
29    &lt;hr>
30    &lt;h2>Invocation 1 (six attributes)&lt;/h2>
31    &lt;ul>
32      &lt;my:echoAttributes x="1" y="2" z="3" r="red" g="green" b="blue"/>
33    &lt;/ul>
34    &lt;h2>Invocation 2 (zero attributes)&lt;/h2>
35    &lt;ul>
36      &lt;my:echoAttributes/>
37    &lt;/ul>
38    &lt;h2>Invocation 3 (three attributes)&lt;/h2>
39    &lt;ul>
40      &lt;my:echoAttributes dogName="Scruffy"
41         catName="Fluffy"
42       blowfishName="Puffy"/>
43    &lt;/ul>
44  &lt;/body>
45&lt;/html>
46</pre></body></html>
Note: See TracBrowser for help on using the repository browser.