checkout.jsp

来自「IBM提供的购物车」· JSP 代码 · 共 54 行

JSP
54
字号
<%@ page 
language="java"
pageEncoding="gb2312"
%>

<%@ include file="/include/top.jspf"%> 

<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" align="center">
<h2 align="center"><html:link page="/cart/cart.jsp">&lt;&lt; 购物车</html:link>::购物统计</h2>

<TABLE class=font1 cellSpacing=0 borderColorDark=#ffffff cellPadding=2 width="99%" align=center bgColor=#ffffff borderColorLight=#003686 border=1>
  <tr bgcolor="#C4E669">  <td><b>项目 ID</b></td>  <td><b>产品 ID</b></td>  <td><b>介绍</b></td>  <td><b>数量</b></td>  <td><b>价格</b></td>  </tr>

<logic:iterate id="cartItem" name="cartForm" property="cart.cartItems">
  <tr bgcolor="#fffdd7">
  <td><b>

 <html:link paramId="itemId" paramName="cartItem" paramProperty="item.itemId" page="/product/viewItem.jsp">
 <bean:write name="cartItem" property="item.itemId" /></html:link></b></td>
  <td><bean:write name="cartItem" property="item.productId" /></td>
  <td> 
     <bean:write name="cartItem" property="item.product.name" />
     <bean:write name="cartItem" property="item.attr1" />
     <bean:write name="cartItem" property="item.attr2" />
     <bean:write name="cartItem" property="item.attr3" />   
     <bean:write name="cartItem" property="item.attr5" />
   </td>
  <td align="center">
  <bean:write name="cartItem" property="quantity" />
  </td>
  <td align="right"><bean:write name="cartItem" property="item.listPrice" /> </td>
  </tr>
</logic:iterate>
<tr bgcolor="#fffdd7"> 
<td colspan="5" align="right">
<b>小计: <bean:write name="cartForm" property="cart.subTotal" /></b><br />
 
</td>
</tr>
</table>
<br />
<center><html:link page="/order/createOrderForm.do"><img border="0" src="../images/button_continue.gif" /></html:link></center>
</td>


<td valign="top" width="20%" align="right">&nbsp;

</td>

</tr>
</table>
<%@ include file="/include/bottom.jspf"%>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?