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 / choose.jsp < prev    next >
Encoding:
Text File  |  2004-08-28  |  1.5 KB  |  58 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. <html>
  17.   <head>
  18.     <title>Tag Examples - choose</title>
  19.   </head>
  20.   <body>
  21.     <h1>Tag Plugin Examples - <c:choose></h1>
  22.  
  23.     <hr>
  24.     </br>
  25.     <a href="notes.html">Plugin Introductory Notes<font <font color="#0000FF"></
  26. a>
  27.     <br/>
  28.     <a href="howto.html">Brief Instructions for Writing Plugins<font color="#000
  29. 0
  30. FF"></a>
  31.     <br/> <br/>
  32.     <hr>
  33.  
  34.     <font color="#000000"/>
  35.     </br>
  36.  
  37.     <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
  38.  
  39.     <c:forEach var="index" begin="0" end="4">
  40.       # ${index}: 
  41.       <c:choose>
  42.     <c:when test="${index == 1}">
  43.           One!</br>
  44.     </c:when>
  45.     <c:when test="${index == 4}">
  46.           Four!</br>
  47.     </c:when>
  48.     <c:when test="${index == 3}">
  49.           Three!</br>
  50.     </c:when>
  51.     <c:otherwise>
  52.           Huh?</br>
  53.     </c:otherwise>
  54.       </c:choose>
  55.     </c:forEach>
  56.   </body>
  57. </html> 
  58.