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 / book.jsp < prev    next >
Encoding:
Text File  |  2004-08-28  |  1.6 KB  |  55 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="/WEB-INF/jsp2/jsp2-example-taglib.tld" %>
  17. <html>
  18.   <head>
  19.     <title>JSP 2.0 Examples - Book SimpleTag Handler</title>
  20.   </head>
  21.   <body>
  22.     <h1>JSP 2.0 Examples - Book SimpleTag Handler</h1>
  23.     <hr>
  24.     <p>Illustrates a semi-realistic use of SimpleTag and the Expression 
  25.     Language.  First, a <my:findBook> tag is invoked to populate 
  26.     the page context with a BookBean.  Then, the books fields are printed 
  27.     in all caps.</p>
  28.     <br>
  29.     <b><u>Result:</u></b><br>
  30.     <my:findBook var="book"/>
  31.     <table border="1">
  32.         <thead>
  33.         <td><b>Field</b></td>
  34.         <td><b>Value</b></td>
  35.         <td><b>Capitalized</b></td>
  36.     </thead>
  37.     <tr>
  38.         <td>Title</td>
  39.         <td>${book.title}</td>
  40.         <td>${my:caps(book.title)}</td>
  41.     </tr>
  42.     <tr>
  43.         <td>Author</td>
  44.         <td>${book.author}</td>
  45.         <td>${my:caps(book.author)}</td>
  46.     </tr>
  47.     <tr>
  48.         <td>ISBN</td>
  49.         <td>${book.isbn}</td>
  50.         <td>${my:caps(book.isbn)}</td>
  51.     </tr>
  52.     </table>
  53.   </body>
  54. </html>
  55.