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

📄 showbook.jsp

📁 手工完成
💻 JSP
字号:
<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="Bean.BookBean"%>
<%
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 'ShowBook.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>
  <table border="1">
   <%
   if(request.getAttribute("errormsg") != null)
   {
    %>
    <tr><td colspan="2" align="center">Message:<%=request.getAttribute("errormsg")%></td>
   </tr><%request.removeAttribute("errormsg");
   }
    Bean.BookBean book = (Bean.BookBean)request.getAttribute("book");
    if(book != null)
    {
    request.removeAttribute("book");
    %><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>
  </tr>
    <% 
    }
     %>
    
    </table>
  </body>
</html>

⌨️ 快捷键说明

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