blob: 9c7add04064c717dc921ce68ca35f12fabdd2cb3 [file] [log] [blame]
Hongqing Liufd5ee812014-05-10 16:32:51 +08001<html><body><pre>
刘洪青6266f992017-05-15 21:21:03 +08002&lt;%--
Hongqing Liufd5ee812014-05-10 16:32:51 +08003 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.
刘洪青6266f992017-05-15 21:21:03 +080017--%>
18&lt;html>
Hongqing Liufd5ee812014-05-10 16:32:51 +080019&lt;jsp:useBean id="cart" scope="session" class="sessions.DummyCart" />
20
21&lt;jsp:setProperty name="cart" property="*" />
22&lt;%
刘洪青6266f992017-05-15 21:21:03 +080023 cart.processRequest();
Hongqing Liufd5ee812014-05-10 16:32:51 +080024%>
25
26
27&lt;FONT size = 5 COLOR="#CC0000">
28&lt;br> You have the following items in your cart:
29&lt;ol>
Hongqing Liufd5ee812014-05-10 16:32:51 +080030&lt;%
刘洪青6266f992017-05-15 21:21:03 +080031 String[] items = cart.getItems();
32 for (int i=0; i&lt;items.length; i++) {
33%>
34&lt;li> &lt;% out.print(util.HTMLFilter.filter(items[i])); %>
35&lt;%
36 }
Hongqing Liufd5ee812014-05-10 16:32:51 +080037%>
38&lt;/ol>
39
40&lt;/FONT>
41
42&lt;hr>
43&lt;%@ include file ="carts.html" %>
44&lt;/html>
45</pre></body></html>