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

📄 qita_005fdetail_jsp.java

📁 用JSP制作的个人网站
💻 JAVA
字号:
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;
import liangjuyan.conndb;

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

  private static java.util.Vector _jspx_dependants;

  public java.util.List 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("\r\n");
      out.write("\r\n");

  conndb conn = new conndb();
   ResultSet rs_haha = conn.executeQuery("select top 3 title from haha ");
  String s_title="";
  String s_detail="";
  ResultSet rs_shenghuoyongpin2 = conn.executeQuery("select top 6 qitaid,tupian from qita");
  int shenghuoyongpinid2=0;
  String tupian="";
  int ID=-1;
  ID=Integer.parseInt(request.getParameter("ID"));
  if(ID>0){
  ResultSet rs_shenghuoyongpin=conn.executeQuery("select wupinming,yanse,changjia,cailiao,shiyongnianxian,shengchanriqi,goumaichishu,tuijianzhishu,youdian,datupian from qita where qitaid="+ID);

  String s_hwupinming ="";
  String s_hyanse="";
  String s_hchangjia ="";
  String s_hcailiao = "";
  String s_hshiyongnianxian = "";
  String s_hshengchanriqi = "";
  String s_hgoumaichishu = "";
  String s_htuijianzhishu = "";
  String s_hyoudian = "";

  String s_hdatupian="";
  if(rs_shenghuoyongpin.next()) {
                             s_hwupinming = rs_shenghuoyongpin.getString(1);
                             s_hyanse = rs_shenghuoyongpin.getString(2);
                             s_hchangjia = rs_shenghuoyongpin.getString(3);
                             s_hcailiao = rs_shenghuoyongpin.getString(4);
                             s_hshiyongnianxian = rs_shenghuoyongpin.getString(5);
                             s_hshengchanriqi = rs_shenghuoyongpin.getString(6);
                             s_hgoumaichishu= rs_shenghuoyongpin.getString(7);
                             s_htuijianzhishu= rs_shenghuoyongpin.getString(8);
                             s_hyoudian= rs_shenghuoyongpin.getString(9);
                             s_hdatupian= rs_shenghuoyongpin.getString(10);}


      out.write("\r\n");
      out.write("\r\n");
      out.write("<script src=\"JS/check.jsp\"></script>\r\n");
      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<title></title>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
      out.write("<style type=\"text/css\">\r\n");
      out.write(".btn_grey {color: #CC3300}\r\n");
      out.write(".style16 {\tcolor: #FF0000;\r\n");
      out.write("\tfont-weight: bold;\r\n");
      out.write("}\r\n");
      out.write(".style17 {font-size: 16px}\r\n");
      out.write(".style18 {font-size: 18px}\r\n");
      out.write("</style>\r\n");
      out.write("</head>\r\n");
      out.write("<body>\r\n");
      out.write("<table width=\"760\" height=\"510\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#FFFFFF\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td height=\"510\" valign=\"top\">\r\n");
      out.write("     ");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "daohang.jsp", out, false);
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "dz.jsp", out, false);
      out.write("\r\n");
      out.write("     ");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "zhongjian.jsp", out, false);
      out.write("\r\n");
      out.write("      <table width=\"100%\" height=\"453\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#FFFFFF\">\r\n");
      out.write("        <tr>\r\n");
      out.write("          <td width=\"24%\" valign=\"top\" bgcolor=\"#FFFFFF\">");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "aa.jsp", out, false);
      out.write("         </td>\r\n");
      out.write("          <td width=\"76%\" valign=\"top\"><table width=\"100%\" >\r\n");
      out.write("            <tr>\r\n");
      out.write("              <td height=\"312\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" >\r\n");
      out.write("            <tr>\r\n");
      out.write("              <td width=\"172\" rowspan=\"23\" bgcolor=\"#CEE7E5\"><img  src=\"images/");
      out.print(s_hdatupian);
      out.write("\" /></td>\r\n");
      out.write("              <td width=\"109\" height=\"25\" bgcolor=\"#AFD7D4\"><div align=\"center\"><span class=\"style17\"> 物品名</span>:</div></td>\r\n");
      out.write("              <td width=\"291\" bgcolor=\"#AFD7D4\">");
      out.print(s_hwupinming);
      out.write("</td>\r\n");
      out.write("            </tr>\r\n");
      out.write("            <tr>\r\n");
      out.write("              <td height=\"10\" colspan=\"2\" bgcolor=\"#E7F3F2\">&nbsp;</td>\r\n");
      out.write("              </tr>\r\n");
      out.write("            <tr>\r\n");
      out.write("              <td height=\"25\" bgcolor=\"#E4E6E9\"><div align=\"center\"><span class=\"style18\"> 颜色:</span></div></td>\r\n");
      out.write("              <td bgcolor=\"#E4E6E9\">");
      out.print(s_hyanse);
      out.write("</td>\r\n");
      out.write("            </tr>\r\n");
      out.write("            <tr>\r\n");
      out.write("              <td height=\"10\" colspan=\"2\" bgcolor=\"#F1F2F3\">&nbsp;</td>\r\n");
      out.write("              </tr>\r\n");
      out.write("            <tr>\r\n");
      out.write("              <td height=\"25\" bgcolor=\"#EDE4F7\"><div align=\"center\"><span class=\"style17\"> 厂家</span></div></td>\r\n");
      out.write("              <td bgcolor=\"#EDE4F7\">");
      out.print(s_hchangjia);
      out.write("</td>\r\n");
      out.write("            </tr>\r\n");
      out.write("            <tr>\r\n");
      out.write("              <td height=\"10\" colspan=\"2\" bgcolor=\"#F3EDFA\">&nbsp;</td>\r\n");
      out.write("              </tr>\r\n");
      out.write("            <tr>\r\n");
      out.write("              <td height=\"25\" bgcolor=\"#F1F5FF\"><div align=\"center\"><span class=\"style17\"> 材料</span></div></td>\r\n");
      out.write("              <td bgcolor=\"#F1F5FF\">");
      out.print(s_hcailiao);
      out.write("</td>\r\n");
      out.write("            </tr>\r\n");
      out.write("            <tr>\r\n");
      out.write("              <td height=\"10\" colspan=\"2\" bgcolor=\"#F7F9FF\">&nbsp;</td>\r\n");
      out.write("              </tr>\r\n");
      out.write("            <tr>\r\n");
      out.write("              <td height=\"25\" bgcolor=\"#CEE7E5\"><div align=\"center\"><span class=\"style17\"> 生产日期</span></div></td>\r\n");
      out.write("              <td bgcolor=\"#CEE7E5\">");
      out.print(s_hshengchanriqi);
      out.write("</td>\r\n");
      out.write("            </tr>\r\n");
      out.write("            <tr>\r\n");
      out.write("              <td height=\"10\" colspan=\"2\" bgcolor=\"#E7F3F2\">&nbsp;</td>\r\n");
      out.write("              </tr>\r\n");
      out.write("            <tr>\r\n");
      out.write("              <td height=\"25\" bgcolor=\"#E4E6E9\"><div align=\"center\"><span class=\"style17\">购买次数</span></div></td>\r\n");
      out.write("              <td bgcolor=\"#E4E6E9\">");
      out.print(s_hdatupian);
      out.write("</td>\r\n");
      out.write("            </tr>\r\n");
      out.write("            <tr>\r\n");
      out.write("              <td height=\"10\" colspan=\"2\" bgcolor=\"#F1F2F3\">&nbsp;</td>\r\n");
      out.write("              </tr>\r\n");
      out.write("            <tr>\r\n");
      out.write("              <td height=\"25\" bgcolor=\"#EDE4F7\"><div align=\"center\"><span class=\"style17\">推荐指数</span></div></td>\r\n");
      out.write("              <td bgcolor=\"#EDE4F7\">");
      out.print(s_hgoumaichishu);
      out.write("</td>\r\n");
      out.write("            </tr>\r\n");
      out.write("            <tr>\r\n");
      out.write("              <td height=\"10\" colspan=\"2\" bgcolor=\"#F3EDFA\">&nbsp;</td>\r\n");
      out.write("              </tr>\r\n");
      out.write("            <tr>\r\n");
      out.write("              <td height=\"25\" bgcolor=\"#F1F5FF\"><div align=\"center\"><span class=\"style17\">优点</span></div></td>\r\n");
      out.write("              <td bgcolor=\"#F1F5FF\">");
      out.print(s_hyoudian);
      out.write("</td>\r\n");
      out.write("            </tr>\r\n");
      out.write("            <tr>\r\n");
      out.write("              <td height=\"10\" colspan=\"2\" bgcolor=\"#F7F9FF\">&nbsp;</td>\r\n");
      out.write("              </tr>\r\n");
      out.write("            <tr>\r\n");
      out.write("              <td height=\"25\" bgcolor=\"#EDE4F7\"><div align=\"center\"><span class=\"style17\">使用年限</span></div></td>\r\n");
      out.write("              <td bgcolor=\"#EDE4F7\">");
      out.print(s_hshiyongnianxian);
      out.write("</td>\r\n");
      out.write("            </tr>\r\n");
      out.write("            <tr>\r\n");
      out.write("              <td height=\"10\" colspan=\"2\" bgcolor=\"#F3EDFA\">&nbsp;</td>\r\n");
      out.write("              </tr>\r\n");
      out.write("          </table></td>\r\n");
      out.write("              </tr>\r\n");
      out.write("            <tr>\r\n");
      out.write("              <td height=\"145\" ><table width=\"572\" cellpadding=\"0\" cellspacing=\"0\" >\r\n");
      out.write("              <tr>\r\n");
      out.write("                <td width=\"564\" background=\"images/st.jpg\" height=\"30\" ></td>\r\n");
      out.write("              </tr>\r\n");
      out.write("              <tr>\r\n");
      out.write("                <td height=\"109\" valign=\"top\"><table width=\"23%\" >\r\n");
      out.write("                    <tr>\r\n");
      out.write("                      ");
   while(rs_shenghuoyongpin2.next()) {
                             shenghuoyongpinid2=rs_shenghuoyongpin2.getInt(1);
                             tupian=rs_shenghuoyongpin2.getString(2);
                         
      out.write("\r\n");
      out.write("                      <td height=\"101\"><div align=\"center\"><a href=\"qita_detail.jsp?ID=");
      out.print(shenghuoyongpinid2);
      out.write("\"><img src=\"images/");
      out.print(tupian);
      out.write("\" width=85></a></div></td>\r\n");
      out.write("                      ");
}
      out.write("\r\n");
      out.write("                    </tr>\r\n");
      out.write("                </table></td>\r\n");
      out.write("              </tr>\r\n");
      out.write("            </table></td>\r\n");
      out.write("              </tr>\r\n");
      out.write("          </table></td>\r\n");
      out.write("        </tr>\r\n");
      out.write("      </table>      \r\n");
      out.write("      <img src=\"file:///C|/Documents%20and%20Settings/liang/My%20Documents/liangjuyan/yan.png\" width=\"760\" height=\"45\"/></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("</body>\r\n");
      out.write("</html>");
conn.close();}
      out.write("\r\n");
      out.write("\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 + -