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

📄 showbookdeal.jsp

📁 手工完成
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%
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 'ShowBookDeal.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>
  <a href = "AdminLogInSucceed.jsp">返回管理员首页</a><br>
    <%
   
   ArrayList arraylist = (ArrayList)request.getAttribute("buybookarray");
   
   if(arraylist == null)
   {
   	out.println("目前还没有图书交易!");
   }
   else
   {
   	Bean.BookBean book = null;    //---这句话写在这可以---
   	System.out.println("有图书!");
  %><table border="1"> 
<%	
   	Iterator<Bean.BookBean> it = arraylist.iterator();
   	while(it.hasNext())
   	{
 //  		Bean.BookBean user = null;  //---这句话写在这也可以---
   		book = it.next();
   		System.out.println(book.getBookID());
   		
 %> 
  <tr>
    <td width="115" rowspan="3"><img src = "<%= book.getPicroot() %>" width = "100" height = "130"></td>
    <td width="60" height="41">书号:</td>
    <td width="175"><%=book.getBookID()%></td>
    <td width="88">作者:</td>
    <td colspan="3"><%= book.getAuthor() %></td>
  </tr>
  <tr>
    <td height="52">书名</td>
    <td><%= book.getBookName()%></td>
    <td>价格:</td>
    <td colspan="3"><%= book.getPrice()%></td>
  </tr>
  <tr>
    <td>打折</td>
    <td><%= book.getDiscount()%></td>
    <td>出版社</td>
    <td width="155"><%= book.getPress()%></td>
  </tr>
  <tr>
  <td>售出数量:</td><td><%= book.getSum()%></td>
  <td>
  </td>
 </tr>
 <%
   	} //  <input type = "hidden" name = "UpdateUserID" value = "<%=user.getID()">
 
   }
%>
</table> 
  
 
  </body>
</html>

⌨️ 快捷键说明

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