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