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

📄 bookdetail_jsp.java

📁 项目名称eShop
💻 JAVA
字号:
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.text.*;
import java.util.*;
import eshop.business.*;
import eshop.common.*;

public final class bookdetail_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

  private static java.util.List _jspx_dependants;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    JspFactory _jspxFactory = null;
    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html; charset=gb2312");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			"", true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("\r\n");
      out.write("<head>\r\n");
      out.write("\r\n");
      out.write("<title></title>\r\n");
      out.write("<meta http-equiv=\"content-type\" content=\"text/html; charset=gb2312\"></meta>\r\n");
      out.write("<link rel=stylesheet href=\"css/style.css\" type=\"text/css\"> \r\n");
      out.write("<script language=\"JavaScript\" src=\"js/controller.js\"></script>\r\n");
      out.write("<script language=\"JavaScript\" src=\"js/imageControl.js\"></script>\r\n");
      out.write("</head>\r\n");
      out.write("\r\n");
      out.write("<body>\r\n");
      out.write("<center>\r\n");
      out.write("<!--Top Start-->\r\n");
      out.write("<table cellspacing=\"0\" cellpadding=\"0\" width=\"800\">\r\n");
      out.write("   <tr>\r\n");
      out.write("     <td>\r\n");
      out.write("       <iframe src=\"top.jsp\" height=\"171\" width=\"810\" frameBorder=\"\"></iframe>\r\n");
      out.write("     </td>\r\n");
      out.write("   </tr>\r\n");
      out.write("</table>\r\n");
      out.write("<!--Top End--> \r\n");

     String strBookID=request.getParameter("bookid");
     int intBookID=Integer.parseInt(strBookID);
     BookBean bookbean=new BookBean();
     BookVO book=new BookVO();
     book=bookbean.getBookInfo(intBookID);

      out.write("\r\n");
      out.write("<table cellspacing=\"0\" cellpadding=\"0\" width=\"760\" class=tableBorder>\r\n");
      out.write(" <tr height=\"180\">\r\n");
      out.write("    <td width=\"160\" align=\"center\">\r\n");
      out.write("      ");
String strImg=book.getBookPicture();
          if(strImg==null||strImg.equals(""))
           {
              strImg="default.gif";
           }
       
      out.write("\r\n");
      out.write("       <img src=\"UploadBookPicture/");
      out.print(strImg);
      out.write("\" onload=\"javascript:DrawImage(this);\">\r\n");
      out.write("    </td>\r\n");
      out.write("    <td width=\"320\">\r\n");
      out.write("      <TABLE cellspacing=\"0\" cellpadding=\"0\" width=\"320\" class=tableBorder1>\r\n");
      out.write("         <tr>\r\n");
      out.write("           <td><a class=\"font-book\" href=\"\">");
      out.print(book.getBookName());
      out.write("</a></td>\r\n");
      out.write("         </tr>\r\n");
      out.write("         <tr>\r\n");
      out.write("           <td class=\"dot-line\"></td>\r\n");
      out.write("         </tr>\r\n");
      out.write("         <tr>\r\n");
      out.write("           <td>商城价:<span class=\"font-orange\">");
      out.print(book.getBookEshopPrice());
      out.write("</span></td>\r\n");
      out.write("         </tr>\r\n");
      out.write("         <tr>\r\n");
      out.write("           <td>市场价:<span class=\"font-linethrough1\">");
      out.print(book.getBookPrice());
      out.write("</span></td>\r\n");
      out.write("         </tr>\r\n");
      out.write("         <tr>\r\n");
      out.write("           <td class=\"dot-line\"></td>\r\n");
      out.write("         </tr>\r\n");
      out.write("         <tr>\r\n");
      out.write("           <td>作者:");
      out.print(book.getBookAuthor());
      out.write(" </td>\r\n");
      out.write("         </tr>\r\n");
      out.write("         <tr>\r\n");
      out.write("           <td class=\"dot-line\"></td>\r\n");
      out.write("         </tr>\r\n");
      out.write("         <tr>\r\n");
      out.write("           <td>出版社:");
      out.print(book.getBookPress());
      out.write("  </td>\r\n");
      out.write("         </tr>\r\n");
      out.write("         <tr>\r\n");
      out.write("           <td class=\"dot-line\"></td>\r\n");
      out.write("         </tr>\r\n");
      out.write("         <tr>\r\n");
      out.write("           <td>出版日期:");
      out.print(book.getBookPubDate());
      out.write("  </td>\r\n");
      out.write("         </tr>\r\n");
      out.write("         <tr>\r\n");
      out.write("           <td class=\"dot-line\"></td>\r\n");
      out.write("         </tr>\r\n");
      out.write("         <tr>\r\n");
      out.write("           <td><input type=\"button\" src=\"image/es_book_buy.gif\" name=\"buy\" value=\"立即购买\" onclick=\"return goCart(");
      out.print(strBookID);
      out.write(");\"></td>\r\n");
      out.write("         </tr>\r\n");
      out.write("      </TABLE>\r\n");
      out.write("    </td>\r\n");
      out.write("    <td width=\"280\">\r\n");
      out.write("       <table ellspacing=\"0\" cellpadding=\"0\" width=\"280\" class=tableBorder1>\r\n");
      out.write("           <tr height=\"20\">\r\n");
      out.write("             <td class=\"tag\">\r\n");
      out.write("               <img src=\"image/es_frame_010.gif\"> <strong>图书简介</strong> \r\n");
      out.write("             </td>\r\n");
      out.write("           </tr>\r\n");
      out.write("           <tr height=\"160\">\r\n");
      out.write("             <td>");
      out.print(book.getBookDesc());
      out.write("</td>\r\n");
      out.write("           </tr>\r\n");
      out.write("       </table>\r\n");
      out.write("    </td>\r\n");
      out.write(" </tr>\r\n");
      out.write("</table>\r\n");
      out.write("\r\n");
      out.write("<!--foot start--> \r\n");
      out.write("<table cellspacing=\"0\" cellpadding=\"0\" width=\"800\">\r\n");
      out.write("<tr>\r\n");
      out.write("  <td>\r\n");
      out.write("    <iframe src=\"foot.htm\" height=\"80\" width=\"800\" frameBorder=\"\"></iframe>\r\n");
      out.write("  </td>\r\n");
      out.write("</tr>\r\n");
      out.write("</table>\r\n");
      out.write("<!--foot end--> \r\n");
      out.write("</center>\r\n");
      out.write("</body>\r\n");
      out.write("\r\n");
      out.write("</html>\r\n");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}

⌨️ 快捷键说明

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