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

📄 list.jsp

📁 运用jsp/servlet技术 通过bs方式 在网上购买MP3
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="GB18030"%>
<%@ include file="pack.jsp" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"  prefix="c"%>
<%
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%>">
    
    <title>My JSP 'List.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">
	-->

  </head>
  
  
  <body background="html/bg.jpg">
    <%
     //取得PayMoney.html提交的银行卡信息参数并显示
     String carNo=(String) session.getAttribute("carNo"); 
     String bank=(String) session.getAttribute("bank"); 
     String place=(String) session.getAttribute("place"); 
    %>
    <h3>银行卡信息如下:</h3>
    卡号:<%=carNo %><br>
    密码:*******<br>
    地址:<%=place %><br>
    银行:<%=bank %> <br><br><br><br>
    
    <%//取得贮存购买Mp3的信息的Map数组并显示 %>
    <h3>购买Mp3信息如下:</h3>
     <table >
       <tr>
         <td>编号</td>
         <td>名称</td>
       	 <td>价格</td>
         <td>数量</td>
         <td>图片</td>
       </tr>
      
        <c:forEach items="${sessionScope.buyMp3List}" var="buyMp3">
        <tr>
    		<td>${buyMp3.value.mp3No }</td>
    		<td>${buyMp3.value.mp3Name }</td>
    		<td>${buyMp3.value.mp3Price }</td>
    		<td>${buyMp3.value.buyNo }</td>
    		<td><img src="imgs/${buyMp3.value.mp3Img }"></td>	
    	</tr>
        </c:forEach>
        <tr>
         <td></td>
    	 <td></td>
    	 <td></td>
    	 <td></td>
    	 <td>总价</td>
    	</tr>
       </table>
    </body>
</html>

⌨️ 快捷键说明

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