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

📄 507bc9bb990a001c126d85d192d96ccb

📁 这是一个小程序 网上书店用的 我们学生做的一个小实验
💻
字号:
<!-- This page displays all details about a book.  --><%@ page language="java" errorPage="error.jsp" import="bean.*"%><!-- This page uses two page-scoped beans: a BookTitle and a Book. --><jsp:useBean id="title" scope="page" class="bean.BookTitle" /> <!-- Page scoped bean for a common header and footer. --><jsp:useBean id="tags" scope="page" class="bean.CommonTags" /><!DOCTYPE html PUBLIC "-//W3C//DTD html 4.0 transitional//EN"><html>  <head>    <meta name="Description" content="Online Bookstore: a demonstration online database project.">    <title>Online Bookstore: Book Details</title>    <link rel="stylesheet" type="text/css" href="styles.css">  </head>  <body>    <!-- Display the common header using a JavaBean. -->       <%=tags.getHeader()%>    <p><b>Book Details</b></p>    <ul>      <%        /**	 * Get the callnumber (cn) parameter from the URL	 * and set the BookTitle bean based on this callnumber.	 */        String cn = request.getParameter("cn");        title = StoreBookTitle.getBookTitle(cn);      %>      <!-- Display the book details as an invisible (border=0) table.	   Each of the pieces of information about the books are	   obtained from the title.getAttribute() methods. -->	      <li style="list-style: none">        <table border="0" cellpadding="5" cellspacing="1">          <tr>            <td align="right" valign="top" class="inverted">              <i>ISBN:</i>            </td>	    <!-- Display the callnumber. -->            <td align="left" valign="top">              <%=title.getISBN()%>            </td>          </tr>          <tr>            <td align="right" valign="top" class="inverted">              <i>Title:</i>            </td>	    <!-- Display the title. -->            <td align="left" valign="top">              <%=title.getTitle()%>            </td>          </tr>          <tr>            <td align="right" valign="top" class="inverted">              <i>Publisher:</i>            </td>	    <!-- Display the publisher. -->            <td align="left" valign="top">              <%=title.getPublisher() %>, <%=title.getPublished_Date() %>            </td>          </tr>          	  <!-- If there is an edition stored in the db, list it also. -->          <% if (!(title.getEdition().equals(""))) { %>          <tr>            <td align="right" valign="top" class="inverted">              <i>Edition:</i>            </td>            <td align="left" valign="top">              <%=title.getEdition() %>, <%=title.getPublished_Date() %>            </td>          </tr>
          <tr>
            <td align="right" valign="top" class="inverted">
              <i>Price:</i>
            </td>
	    <!-- Display the title. -->
            <td align="left" valign="top">
              <%="$  "+title.getPrice()%>
            </td>
          </tr>
          <tr>
            <td align="right" valign="top" class="inverted">
              <i>Description:</i>
            </td>
	    <!-- Display the title. -->
            <td align="left" valign="top">
              <%=title.getDescription()%>
            </td>
          </tr>
          <tr>
            <td align="right" valign="top" class="inverted">
              <i>Add to Cart:</i>
            </td>
	    <!-- Display the title. -->
            <td align="left" valign="top">
              <a href="viewcart.jsp?cn=<%=title.getISBN()%>">Add to Cart</a>
            </td>
          </tr>          <% } %>        </table>      </li>    </ul>
        <!-- Display the copyright information from the custom JSP tags. -->    <%=tags.getFooter()%>  </body></html>

⌨️ 快捷键说明

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