orderdetail.jsp

来自「一个很好的网上商城系统」· JSP 代码 · 共 49 行

JSP
49
字号
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <html:base/>
    <title>My JSP 'orderDetail.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link rel="stylesheet" type="text/css" href="../../photo/css.css">
  </head>
  
  <body>
  	<jsp:include flush="true" page="head.jsp"></jsp:include>	
    <table border="1" width="70%" align="center" cellspacing="0" cellpadding="10" bordercolor="#8000ff">
    	<tr>
    		<td colspan="5" align="center"><h3>订单详情</h3></td>
    	</tr>
    	<tr>
    		<th>商品名</th><th>简介</th><th>单价</th><th>数量</th><th>金额</th>
    	</tr>
    	<c:forEach items="${requestScope.orderWares}" var="orderWare">
    		<tr>
    			
    			<td><c:out value="${orderWare.wares.wareName}"></c:out></td>
    			<td><c:out value="${orderWare.wares.wareInfo}"></c:out></td>
    			<td><c:out value="${orderWare.wares.warePrice}"></c:out></td>
    			<td><c:out value="${orderWare.wareNum}"></c:out></td>
    			<td><c:out value="${orderWare.warePrice}"></c:out></td>
    		</tr>  	
    	</c:forEach>
    </table>
  </body>
</html>

⌨️ 快捷键说明

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