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

📄 spcsort_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 spcsort_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("<link rel=stylesheet href=\"css/style.css\" type=\"text/css\">\r\n");
      out.write("<meta http-equiv=\"content-type\" content=\"text/html; charset=gb2312\"></meta> \r\n");
      out.write("</head>\r\n");
      out.write("\r\n");
      out.write("<body bgcolor=\"#ffffff\" topmargin=\"5\" marginheight=\"5\" leftmargin=\"5\" marginwidth=\"5\">\r\n");
      out.write("<!--表头Start-->\r\n");
      out.write("<table cellspacing=\"0\" cellpadding=\"0\" width=\"300\" background=\"image/es_frame_002.gif\">\r\n");
      out.write("   <tr height=\"27\">\r\n");
      out.write("      <td width=\"4\"><img src=\"image/es_frame_001.gif\"></td>\r\n");
      out.write("      <td width=\"292\" >                 \r\n");
      out.write("         <table cellspacing=\"0\" cellpadding=\"0\" width=\"292\">\r\n");
      out.write("            <tr height=\"4\"></tr>\r\n");
      out.write("            <tr height=\"18\">\r\n");
      out.write("              <td width=\"5\"></td>\r\n");
      out.write("              <td width=\"13\"><img src=\"image/es_frame_010.gif\"></td>\r\n");
      out.write("              <td width=\"2\"></td>\r\n");
      out.write("              <td width=\"65\" class=font-title>特价排行</td>\r\n");
      out.write("              <td width=\"80\"></td>              \r\n");
      out.write("              <td width=\"4\"><img src=\"image/es_frame_006.gif\"></td> \r\n");
      out.write("              <td width=\"110\" background=\"image/es_frame_007.gif\" class=\"font-spc\">\r\n");
      out.write("                <img src=\"image/es_frame_004.gif\"> 原价 \r\n");
      out.write("                <img src=\"image/es_frame_005.gif\"> 现价 \r\n");
      out.write("              </td>              \r\n");
      out.write("              <td width=\"7\"><img src=\"image/es_frame_008.gif\"></td>\r\n");
      out.write("              <td width=\"6\"></td>\r\n");
      out.write("            </tr>\r\n");
      out.write("            <tr height=\"5\"></tr>\r\n");
      out.write("          </table>\r\n");
      out.write("      </td>\r\n");
      out.write("      <td width=\"4\"><img src=\"image/es_frame_003.gif\"></td>\r\n");
      out.write("   </tr>\r\n");
      out.write("</table>\r\n");
      out.write("<!--表头End-->\r\n");
      out.write("\r\n");
      out.write("<!--表体Start-->\r\n");

    BookVO book=null;
    BookBean bookbean=new BookBean();
    ArrayList alBooks=bookbean.getBookDisCountSort();
    Iterator itrBook=alBooks.iterator();   

      out.write("\r\n");
      out.write("<table cellspacing=\"0\" cellpadding=\"0\" width=\"300\" class=tableBorder>\r\n");
while(itrBook.hasNext())
   {
      book=(BookVO)itrBook.next();
      

      out.write("\r\n");
      out.write(" <tr>\r\n");
      out.write("   <td width=\"170\">・<a href=\"bookdetail.jsp?bookid=");
      out.print(book.getBookID());
      out.write("\" target=\"_blank\">");
      out.print(book.getBookName());
      out.write("</a></td>\r\n");
      out.write("   <td width=\"30\"></td>\r\n");
      out.write("   <td width=\"5\" class=\"font-linethrough\">");
      out.print(book.getBookPrice());
      out.write("</td>\r\n");
      out.write("   <td width=\"50\"></td>\r\n");
      out.write("   <td width=\"5\" class=\"font-red\">");
      out.print(book.getBookEshopPrice());
      out.write("</td> \r\n");
      out.write("   <td width=\"40\"></td> \r\n");
      out.write(" </tr>\r\n");
      out.write(" <tr class=dot-line><td colspan=\"6\"></td></tr>\r\n");
      out.write(" ");
}
      out.write("\r\n");
      out.write("\r\n");
      out.write(" \r\n");
      out.write("</table>\r\n");
      out.write("<!--表体End-->\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 + -