Line | |
---|
1 | <!-- |
---|
2 | Licensed to the Apache Software Foundation (ASF) under one or more |
---|
3 | contributor license agreements. See the NOTICE file distributed with |
---|
4 | this work for additional information regarding copyright ownership. |
---|
5 | The ASF licenses this file to You under the Apache License, Version 2.0 |
---|
6 | (the "License"); you may not use this file except in compliance with |
---|
7 | the License. You may obtain a copy of the License at |
---|
8 | |
---|
9 | http://www.apache.org/licenses/LICENSE-2.0 |
---|
10 | |
---|
11 | Unless required by applicable law or agreed to in writing, software |
---|
12 | distributed under the License is distributed on an "AS IS" BASIS, |
---|
13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
---|
14 | See the License for the specific language governing permissions and |
---|
15 | limitations under the License. |
---|
16 | --> |
---|
17 | <html> |
---|
18 | <head> |
---|
19 | <title>Tag Examples - choose</title> |
---|
20 | </head> |
---|
21 | <body> |
---|
22 | <h1>Tag Plugin Examples - <c:choose></h1> |
---|
23 | |
---|
24 | <hr> |
---|
25 | </br> |
---|
26 | <a href="notes.html">Plugin Introductory Notes<font <font color="#0000FF"></ |
---|
27 | a> |
---|
28 | <br/> |
---|
29 | <a href="howto.html">Brief Instructions for Writing Plugins<font color="#000 |
---|
30 | 0 |
---|
31 | FF"></a> |
---|
32 | <br/> <br/> |
---|
33 | <hr> |
---|
34 | |
---|
35 | <font color="#000000"/> |
---|
36 | </br> |
---|
37 | |
---|
38 | <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> |
---|
39 | |
---|
40 | <c:forEach var="index" begin="0" end="4"> |
---|
41 | # ${index}: |
---|
42 | <c:choose> |
---|
43 | <c:when test="${index == 1}"> |
---|
44 | One!</br> |
---|
45 | </c:when> |
---|
46 | <c:when test="${index == 4}"> |
---|
47 | Four!</br> |
---|
48 | </c:when> |
---|
49 | <c:when test="${index == 3}"> |
---|
50 | Three!</br> |
---|
51 | </c:when> |
---|
52 | <c:otherwise> |
---|
53 | Huh?</br> |
---|
54 | </c:otherwise> |
---|
55 | </c:choose> |
---|
56 | </c:forEach> |
---|
57 | </body> |
---|
58 | </html> |
---|
Note: See
TracBrowser
for help on using the repository browser.