source: nutchez-0.1/tomcat/webapps/examples/jsp/jsp2/simpletag/book.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.0 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="/WEB-INF/jsp2/jsp2-example-taglib.tld" %>
19&lt;html>
20  &lt;head>
21    &lt;title>JSP 2.0 Examples - Book SimpleTag Handler&lt;/title>
22  &lt;/head>
23  &lt;body>
24    &lt;h1>JSP 2.0 Examples - Book SimpleTag Handler&lt;/h1>
25    &lt;hr>
26    &lt;p>Illustrates a semi-realistic use of SimpleTag and the Expression
27    Language.  First, a &amp;lt;my:findBook&amp;gt; tag is invoked to populate
28    the page context with a BookBean.  Then, the books fields are printed
29    in all caps.&lt;/p>
30    &lt;br>
31    &lt;b>&lt;u>Result:&lt;/u>&lt;/b>&lt;br>
32    &lt;my:findBook var="book"/>
33    &lt;table border="1">
34        &lt;thead>
35      &lt;td>&lt;b>Field&lt;/b>&lt;/td>
36      &lt;td>&lt;b>Value&lt;/b>&lt;/td>
37      &lt;td>&lt;b>Capitalized&lt;/b>&lt;/td>
38  &lt;/thead>
39  &lt;tr>
40      &lt;td>Title&lt;/td>
41      &lt;td>${book.title}&lt;/td>
42      &lt;td>${my:caps(book.title)}&lt;/td>
43  &lt;/tr>
44  &lt;tr>
45      &lt;td>Author&lt;/td>
46      &lt;td>${book.author}&lt;/td>
47      &lt;td>${my:caps(book.author)}&lt;/td>
48  &lt;/tr>
49  &lt;tr>
50      &lt;td>ISBN&lt;/td>
51      &lt;td>${book.isbn}&lt;/td>
52      &lt;td>${my:caps(book.isbn)}&lt;/td>
53  &lt;/tr>
54    &lt;/table>
55  &lt;/body>
56&lt;/html>
57</pre></body></html>
Note: See TracBrowser for help on using the repository browser.