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

📄 denglu_jsp.java

📁 用JSP制作的个人网站
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
package org.apache.jsp;

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

public final class denglu_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 id,title from haha ");
  int s_id = 0;
  String s_title="";
   ResultSet rs_fuzhuang = conn.executeQuery("select top 3 fuzhuangid,wupinming,yanse,changjia,cailiao,shiyongnianxian,shengchanriqi,goumaichishu,tuijianzhishu,youdian from fuzhuang ");
  int s_fuzhuangid = 0;
  String s_fwupinming ="";
  String s_fyanse="";
  String s_fchangjia ="";
  String s_fcailiao = "";
  String s_fshiyongnianxian = "";
  String s_fshengchanriqi = "";
  String s_fgoumaichishu = "";
  String s_ftuijianzhishu = "";
  String s_fyoudian = "";
  ResultSet rs_shipin = conn.executeQuery("select top 3 shipinid, wupinming,yanse,changjia,cailiao,shiyongnianxian,shengchanriqi,goumaichishu,tuijianzhishu,youdian from shipin ");
  int s_shipinid = 0;
  String s_swupinming = "";
  String s_syanse= "";
  String s_schangjia = "";
  String s_scailiao = "";
  String s_sshiyongnianxian = "";
  String s_sshengchanriqi = "";
  String s_sgoumaichishu = "";
  String s_stuijianzhishu = "";
  String s_syoudian = "";
  ResultSet rs_shenghuoyongpin = conn.executeQuery("select top 3 shenghuoyongpinid,wupinming,yanse,changjia,cailiao,shiyongnianxian,shengchanriqi,goumaichishu,tuijianzhishu,youdian from shenghuoyongpin ");
  int s_shenghuoyongpinid = 0;
  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 = "";
  ResultSet rs_qita = conn.executeQuery("select top 3 qitaid,wupinming,yanse,changjia,cailiao,shiyongnianxian,shengchanriqi,goumaichishu,tuijianzhishu,youdian from qita ");
  int s_qitaid = 0;
  String s_qwupinming = "";
  String s_qyanse= "";
  String s_qchangjia = "";
  String s_qcailiao = "";
  String s_qshiyongnianxian = "";
  String s_qshengchanriqi = "";
  String s_qgoumaichishu = "";
  String s_qtuijianzhishu = "";
  String s_qyoudian = "";
  
      out.write("\r\n");
      out.write("<script src=\"JS/check.jsp\"></script>\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("\r\n");
      out.write("\r\n");
      out.write("</style>\r\n");
      out.write("</head>\r\n");
      out.write("<body>\r\n");
      out.write("<table width=\"720\" height=\"934\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#FFFFFF\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td height=\"934\" valign=\"top\">\r\n");
      out.write("    ");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "daohang.jsp", out, false);
      out.write("\r\n");
      out.write("      <table width=\"100%\" height=\"52\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"images/5.png\">\r\n");
      out.write("        <tr>\r\n");
      out.write("          <td height=\"52\" background=\"images/li.png\">\r\n");
      out.write("\r\n");
      out.write("          <form id=\"form1\" name=\"form1\" method=\"post\" action=\"\">                \r\n");
      out.write("            <span class=\"style1\"> 请选择查询条件</span>\r\n");
      out.write("                    \r\n");
      out.write("            <select name=\"select\">\r\n");
      out.write("              <option>服装</option>\r\n");
      out.write("              <option>饰品</option>\r\n");
      out.write("              <option>生活用品</option>\r\n");
      out.write("              <option>其他</option>\r\n");
      out.write("            </select>\r\n");
      out.write("             \r\n");
      out.write("            <input type=\"submit\" name=\"Submit\" value=\"搜索\"/>\r\n");
      out.write("                      \r\n");
      out.write("          </form>\r\n");
      out.write("          </td>\r\n");
      out.write("        </tr>\r\n");
      out.write("      </table>\r\n");
      out.write("      <p>        &nbsp;&nbsp;&nbsp;\r\n");
      out.write("         \r\n");
      out.write("        <img src=\"images/gaihou2.png\" width=\"77\" height=\"77\"/>\r\n");
      out.write("        &nbsp;\r\n");
      out.write("          \r\n");
      out.write("        <img src=\"images/gaihou4.jpg\" width=\"77\" height=\"77\"/>\r\n");
      out.write("         \r\n");
      out.write("        &nbsp;\r\n");
      out.write("         \r\n");
      out.write("        <img src=\"images/gaihou8.png\" width=\"77\" height=\"77\"/>\r\n");
      out.write("          \r\n");
      out.write("        &nbsp;\r\n");
      out.write("         \r\n");
      out.write("        <img src=\"images/gaihou14.png\" width=\"77\" height=\"77\"/>\r\n");
      out.write("          \r\n");
      out.write("        &nbsp;\r\n");
      out.write("        <img src=\"images/gaihou11.png\" width=\"77\" height=\"77\"/>\r\n");
      out.write("         \r\n");
      out.write("        &nbsp;\r\n");
      out.write("      <img src=\"images/gaihou10.png\" width=\"77\" height=\"77\"/>\r\n");
      out.write("      </p>\r\n");
      out.write("      <table width=\"100%\" height=\"484\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("        <tr>\r\n");
      out.write("          <td width=\"25%\" height=\"484\" valign=\"top\">\r\n");
      out.write("           ");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "gundong.jsp", out, false);
      out.write("\r\n");
      out.write("            <table width=\"192\" cellspacing=\"0\" cellpadding=\"0\" border=\"1\" bordercolor=\"#cccccc\">\r\n");
      out.write("              <tr bordercolor=\"#FF9966\">\r\n");
      out.write("                <td width=\"192\" height=\"33\" valign=\"midder\" background=\"images/haha.png\">      最新资讯 </td>\r\n");
      out.write("              </tr>\r\n");
      out.write("             ");

                  while (rs_haha.next()) {
                    s_title=rs_haha.getString(2);
                   
      out.write("\r\n");
      out.write("              <tr>\r\n");
      out.write("                <td>\r\n");
      out.write("\r\n");
      out.write("                  <table >\r\n");
      out.write("                    <tr>\r\n");
      out.write("                      <td height=\"31\" valign=\"midder \"> ");
      out.print(s_title);
      out.write("  -</td>\r\n");
      out.write("                    </tr>\r\n");
      out.write("                  </table>\r\n");
      out.write("                </td>\r\n");
      out.write("              </tr>   ");
}
      out.write("\r\n");
      out.write("          </table>          </td>\r\n");
      out.write("          <td width=\"3%\">&nbsp;</td>\r\n");
      out.write("          <td width=\"72%\" valign=\"top\">\r\n");
      out.write("            <table width=\"100%\" height=\"480\"  cellpadding=\"0\" cellspacing=\"0\" border=\"1\" bordercolor=\"#cccccc\">\r\n");
      out.write("              <tr>\r\n");
      out.write("                <td height=\"32\" background=\"images/dafadf.png\" bgcolor=\"#ff9966\">   流行时尚   </td>\r\n");
      out.write("              </tr>\r\n");
      out.write("              <tr>\r\n");
      out.write("                <td height=\"448\" valign=\"top\">\r\n");
      out.write("                  <table width=\"100%\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\" bordercolor=\"#cccccc\">\r\n");
      out.write("                    <tr>\r\n");
      out.write("                      <td height=\"37\" colspan=\"9\" background=\"images/zuihou.png\">   服装</td>\r\n");
      out.write("                    </tr>\r\n");
      out.write("\r\n");
      out.write("                    <tr>\r\n");
      out.write("                      <td width=\"10%\" height=\"27\"><div align=\"center\">物品名</div></td>\r\n");
      out.write("                      <td width=\"9%\"><div align=\"center\">颜色</div></td>\r\n");
      out.write("                      <td width=\"9%\"><div align=\"center\">厂家</div></td>\r\n");
      out.write("                      <td width=\"11%\"><div align=\"center\">材料</div></td>\r\n");
      out.write("                      <td width=\"12%\"><div align=\"center\">使用年限</div></td>\r\n");
      out.write("                      <td width=\"13%\"><div align=\"center\">生产日期</div></td>\r\n");
      out.write("                      <td width=\"13%\"><div align=\"center\">购买次数</div></td>\r\n");
      out.write("                      <td width=\"11%\"><div align=\"center\">推荐指数</div></td>\r\n");
      out.write("                      <td width=\"12%\"><div align=\"center\">优点</div></td>\r\n");
      out.write("                    </tr>\r\n");
      out.write("           ");

                  while (rs_fuzhuang.next()) {
                    s_fuzhuangid=rs_fuzhuang.getInt(1);
                    s_fwupinming = rs_fuzhuang.getString(2);
                      s_fyanse = rs_fuzhuang.getString(3);
                       s_fchangjia = rs_fuzhuang.getString(4);
                        s_fcailiao = rs_fuzhuang.getString(5);
                         s_fshiyongnianxian = rs_fuzhuang.getString(6);
                          s_fshengchanriqi = rs_fuzhuang.getString(7);
                          s_fgoumaichishu= rs_fuzhuang.getString(8);
                           s_ftuijianzhishu= rs_fuzhuang.getString(9);
                            s_fyoudian= rs_fuzhuang.getString(10);
                  
      out.write("\r\n");
      out.write("\r\n");
      out.write("                    <tr>\r\n");
      out.write("                      <td height=\"31\">");
      out.print(s_fwupinming);
      out.write("</td>\r\n");
      out.write("                      <td>");
      out.print(s_fyanse);
      out.write("</td>\r\n");
      out.write("                      <td>");
      out.print(s_fchangjia);
      out.write("</td>\r\n");
      out.write("                      <td>");
      out.print(s_fcailiao);
      out.write("</td>\r\n");

⌨️ 快捷键说明

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