source: nutchez-0.1/tomcat/webapps/examples/jsp/jsp2/tagfiles/panel.jsp.html @ 66

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

NutchEz - an easy way to nutch

File size: 2.2 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="tags" tagdir="/WEB-INF/tags" %>
19&lt;html>
20  &lt;head>
21    &lt;title>JSP 2.0 Examples - Panels using Tag Files&lt;/title>
22  &lt;/head>
23  &lt;body>
24    &lt;h1>JSP 2.0 Examples - Panels using Tag Files&lt;/h1>
25    &lt;hr>
26    &lt;p>This JSP page invokes a custom tag that draws a
27    panel around the contents of the tag body.  Normally, such a tag
28    implementation would require a Java class with many println() statements,
29    outputting HTML.  Instead, we can use a .tag file as a template,
30    and we don't need to write a single line of Java or even a TLD!&lt;/p>
31    &lt;hr>
32    &lt;table border="0">
33      &lt;tr valign="top">
34        &lt;td>
35          &lt;tags:panel color="#ff8080" bgcolor="#ffc0c0" title="Panel 1">
36      First panel.&lt;br/>
37    &lt;/tags:panel>
38        &lt;/td>
39        &lt;td>
40          &lt;tags:panel color="#80ff80" bgcolor="#c0ffc0" title="Panel 2">
41      Second panel.&lt;br/>
42      Second panel.&lt;br/>
43      Second panel.&lt;br/>
44      Second panel.&lt;br/>
45    &lt;/tags:panel>
46        &lt;/td>
47        &lt;td>
48          &lt;tags:panel color="#8080ff" bgcolor="#c0c0ff" title="Panel 3">
49      Third panel.&lt;br/>
50            &lt;tags:panel color="#ff80ff" bgcolor="#ffc0ff" title="Inner">
51        A panel in a panel.
52      &lt;/tags:panel>
53      Third panel.&lt;br/>
54    &lt;/tags:panel>
55        &lt;/td>
56      &lt;/tr>
57    &lt;/table>
58  &lt;/body>
59&lt;/html>
60</pre></body></html>
Note: See TracBrowser for help on using the repository browser.