Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 1 | <html><body><pre>
|
| 2 | <!--
|
| 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 | <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
| 19 | <%@ attribute name="normalPrice" fragment="true" %>
|
| 20 | <%@ attribute name="onSale" fragment="true" %>
|
| 21 | <%@ variable name-given="name" %>
|
| 22 | <%@ variable name-given="price" %>
|
| 23 | <%@ variable name-given="origPrice" %>
|
| 24 | <%@ variable name-given="salePrice" %>
|
| 25 |
|
| 26 | <table border="1">
|
| 27 | <tr>
|
刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 28 | <td>
|
Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 29 | <c:set var="name" value="Hand-held Color PDA"/>
|
| 30 | <c:set var="price" value="$298.86"/>
|
| 31 | <jsp:invoke fragment="normalPrice"/>
|
| 32 | </td>
|
刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 33 | <td>
|
Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 34 | <c:set var="name" value="4-Pack 150 Watt Light Bulbs"/>
|
| 35 | <c:set var="origPrice" value="$2.98"/>
|
| 36 | <c:set var="salePrice" value="$2.32"/>
|
| 37 | <jsp:invoke fragment="onSale"/>
|
| 38 | </td>
|
刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 39 | <td>
|
Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 40 | <c:set var="name" value="Digital Cellular Phone"/>
|
| 41 | <c:set var="price" value="$68.74"/>
|
| 42 | <jsp:invoke fragment="normalPrice"/>
|
| 43 | </td>
|
刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 44 | <td>
|
Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 45 | <c:set var="name" value="Baby Grand Piano"/>
|
| 46 | <c:set var="price" value="$10,800.00"/>
|
| 47 | <jsp:invoke fragment="normalPrice"/>
|
| 48 | </td>
|
刘洪青 | 6266f99 | 2017-05-15 21:21:03 +0800 | [diff] [blame^] | 49 | <td>
|
Hongqing Liu | fd5ee81 | 2014-05-10 16:32:51 +0800 | [diff] [blame] | 50 | <c:set var="name" value="Luxury Car w/ Leather Seats"/>
|
| 51 | <c:set var="origPrice" value="$23,980.00"/>
|
| 52 | <c:set var="salePrice" value="$21,070.00"/>
|
| 53 | <jsp:invoke fragment="onSale"/>
|
| 54 | </td>
|
| 55 | </tr>
|
| 56 | </table>
|
| 57 | </pre></body></html>
|