⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 minicart.jsp

📁 噶额外噶外骨骼感广泛高热感 就 啊啊
💻 JSP
字号:
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ page import="oracle.otnsamples.util.Utilities" %>
<%--
 * @author  Neelesh
 * @version 1.0
 *
 * Development Environment        :  Oracle9i JDeveloper
 * Name of the Application        :  miniCart.jsp
 * Creation/Modification History  :
 *
 *     Neelesh     10-Jan-2003      Created
 *
 * Overview of Application  :
 * This JSP displays a summary of the cart information to the user.
 *
--%>

<%@ page language="java" errorPage="../misc/errorHandler.jsp" %>

<%-- Header file. Starts the BODY tag--%>
<TABLE width="100%" border="1" cellspacing="0"
          cellpadding="3" bordercolor="#B3B18E" >
  <TR> 
    <TD valign="top" align="left" nowrap> 
      <%--  Display the message, if any--%>
      <DIV align="left" class="SubHeading"> 
      <html:messages  id="cartmessage" message="true" property="CartMessage">
        <bean:write name="cartmessage"/>
      </html:messages>
      </DIV>
    
      <%-- If the cart is not empty, display the cart--%>
      <logic:notPresent name="cartItems" scope="request">
      <SPAN class="BlueText">
      <center>
        <bean:message key="cart.emptymessage"/>
     </center>
      </SPAN> 
      </logic:notPresent>
      <logic:present name="cartItems" scope="request">
        <TABLE width="98%" cellpadding="0" cellspacing="0" align="center">
          <TR> 
          <TD align="center" valign="top" class="BlueBold" ><img src="images/cart_small.gif"><bean:message key="cart.headermsg"/></TD>
          </TR>
        <BR>
        <TABLE border=""  width="98%" cellpadding="0" cellspacing="0" align="center">
          <TR> 
            <th class="BlueText"> <bean:message key="cart.productlabel"/> </th>
            <th class="BlueText"> <bean:message key="cart.quantitylabel"/></th>
            <th class="BlueText"> <bean:message key="prompt.price"/></th>
          </TR>
          <%-- For each item in the cart, display item name, total price, quantity
    and a link to remove the item from the cart
    --%>
        <logic:iterate id="item" indexId="i" name="cartItems" type="oracle.otnsamples.vsm.services.data.CartItem">
          <TR> 
            <TD valign="top"  class="BlueSmall" width="80%"> <bean:write name="item" property="itemName"/>
            </TD>
            <TD valign="top" align="center" width="10%" class="BlueSmall"> 
               <bean:write name="item" property="quantity"/>
            </TD>
            <TD valign="top" align="right" width="10%" class="BlueSmall"> 
            <%=Utilities.currencyFormat(item.getAmount(),null)%> 
            </TD>
          </TR>
          </logic:iterate>
          <TR><TD colspan="3">
              <A href="cart.do" class="HeaderLink">
             <bean:message key="cart.viewcartlabel"/></A></TD>
          </TR>   
          <TR><TD colspan="3">
            <A href="authuserdisplayshippingaddress.do" class="HeaderLink">
             <bean:message key="cart.checkout.checkoutlink"/></A></TD>
          </TR>   

        </TABLE>
       
</logic:present>
    </td>
  </tr>
</table>

⌨️ 快捷键说明

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