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

📄 addgongqiuxinxi_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 addgongqiuxinxi_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");

 conndb conn = new conndb();
String username=(String)session.getAttribute("username");
  ResultSet rs_haha = conn.executeQuery("select top 5 id,title ,detail from haha where htype=1");
  int s_id = 0;
  String s_title="";
  String s_detail="";
ResultSet rs_ha= conn.executeQuery("select top 5 id,title ,detail from haha where htype=0");
  int id = 0;
  String title="";
  String detail="";
  
      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
      out.write("<title>无标题文档</title>\r\n");
      out.write("<style type=\"text/css\">\r\n");
      out.write("<!--\r\n");
      out.write(".style2 {font-size: 16px}\r\n");
      out.write(".style3 {color: #000000}\r\n");
      out.write(".style4 {font-size: 16px; color: #000000; }\r\n");
      out.write(".style5 {color: #999999}\r\n");
      out.write(".style6 {color: #990099}\r\n");
      out.write(".style7 {color: #0000FF}\r\n");
      out.write(".style9 {color: #66CC66}\r\n");
      out.write(".style10 {color: #9900FF}\r\n");
      out.write(".style11 {color: #0066FF}\r\n");
      out.write(".style12 {color: #993399}\r\n");
      out.write(".style13 {color: #0000CC}\r\n");
      out.write(".style14 {color: #333333}\r\n");
      out.write(".style15 {color: #CC66FF}\r\n");
      out.write(".style16 {color: #669900}\r\n");
      out.write("-->\r\n");
      out.write("</style>\r\n");
      out.write("</head>\r\n");
      out.write("\r\n");
      out.write("<body>\r\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "daohang.jsp", out, false);
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "dz.jsp", out, false);
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "zhongjian.jsp", out, false);
      out.write("\r\n");
      out.write("<table width=\"729\" align=\"center\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td width=\"157\" valign=\"top\"><table  border=\"0\" bgcolor=\"#f1f5ff\">\r\n");
      out.write("           <tr>\r\n");
      out.write("             <td width=\"143\" valign=\"top\">");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "aa.jsp", out, false);
      out.write("</td>\r\n");
      out.write("           </tr>\r\n");
      out.write("    </table></td><td width=\"560\"  valign=\"top\"><table  border=\"0\"  cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("              <tr>\r\n");
      out.write("                <td ><table width=\"100%\" height=\"53\" background=\"images/ri.png\" >\r\n");
      out.write("                  <tr>\r\n");
      out.write("                    <td><marquee direction=\"left\" scrollamount=\"2\"><span class=\"style5\">发布</span><span class=\"style6\">供求</span><span class=\"style7\">信息</span><span class=\"style9\">让你</span><span class=\"style5\">享受</span><span class=\"style10\">便利</span>,<span class=\"style11\">十分</span><span class=\"style5\">可是</span><span class=\"style12\">另外</span><span class=\"style13\">胜利</span><span class=\"style14\">棵分</span><span class=\"style15\">水岭</span><span class=\"style16\">法货物</span>!</marquee></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  valign=\"top\">\r\n");
      out.write("\t\t\t\t<form action=\"addgongqiu_deal.jsp\" name=\"myform\">\r\n");
      out.write("\t\t\t\t<table width=\"100%\" border=\"0\" >\r\n");
      out.write("                  <tr bgcolor=\"#CEE7E5\">\r\n");
      out.write("                    <td width=\"25%\" height=\"25\"><div align=\"center\"><span class=\"style4\">用户名</span></div></td>\r\n");
      out.write("                    <td width=\"75%\"><div align=\"center\">\r\n");
      out.write("                      <input name=\"username\" type=\"text\" size=\"40\">\r\n");
      out.write("                    </div></td>\r\n");
      out.write("                  </tr>\r\n");
      out.write("                  <tr bgcolor=\"#E7F3F2\">\r\n");
      out.write("                    <td height=\"15\" colspan=\"2\">&nbsp;</td>\r\n");
      out.write("                  </tr>\r\n");
      out.write("                  <tr bgcolor=\"#E4E6E9\">\r\n");
      out.write("                    <td height=\"25\"><div align=\"center\" class=\"style4\">真实姓名</div></td>\r\n");
      out.write("                    <td><div align=\"center\">\r\n");
      out.write("                      <input name=\"truename\" type=\"text\" size=\"40\">\r\n");
      out.write("                    </div></td>\r\n");
      out.write("                  </tr>\r\n");
      out.write("                  <tr bgcolor=\"#F1F2F3\">\r\n");
      out.write("                    <td height=\"15\" colspan=\"2\">&nbsp;</td>\r\n");
      out.write("                  </tr>\r\n");
      out.write("               \r\n");
      out.write("                  <tr bgcolor=\"#EDE4F7\">\r\n");
      out.write("                    <td height=\"25\"><div align=\"center\" class=\"style4\">联系地址</div></td>\r\n");
      out.write("                    <td><div align=\"center\">\r\n");
      out.write("                      <input name=\"address\" type=\"text\" size=\"40\">\r\n");
      out.write("                    </div></td>\r\n");
      out.write("                  </tr>\r\n");
      out.write("                  <tr bgcolor=\"#F3EDFA\">\r\n");
      out.write("                    <td height=\"15\" colspan=\"2\">&nbsp;</td>\r\n");
      out.write("                  </tr>\r\n");
      out.write("                  <tr bgcolor=\"#F1F5FF\">\r\n");
      out.write("                    <td height=\"25\"><div align=\"center\" class=\"style4\">证件类型</div></td>\r\n");
      out.write("                    <td><div align=\"center\">\r\n");
      out.write("                    \r\n");
      out.write("                        <label>\r\n");
      out.write("                        <input type=\"radio\" name=\"cardtype\" value=\"身份证\">\r\n");
      out.write("                        身份证</label>\r\n");
      out.write("                        <label>\r\n");
      out.write("                        <input type=\"radio\" name=\"cardtype\" value=\"军官证\">\r\n");
      out.write("                        军官证</label>\r\n");
      out.write("                        <label>\r\n");
      out.write("                        <input type=\"radio\" name=\"cardtype\" value=\"学生证\">\r\n");
      out.write("                        学生证</label>\r\n");
      out.write("                        <br>\r\n");
      out.write("                    </div></td>\r\n");
      out.write("                  </tr>\r\n");
      out.write("                  <tr bgcolor=\"#F7F9FF\">\r\n");
      out.write("                    <td height=\"15\" colspan=\"2\">&nbsp;</td>\r\n");
      out.write("                  </tr>\r\n");
      out.write("                  <tr bgcolor=\"#CEE7E5\">\r\n");
      out.write("                    <td height=\"25\"><div align=\"center\" class=\"style4\">证件号码</div></td>\r\n");
      out.write("                    <td><div align=\"center\">\r\n");
      out.write("                      <input name=\"cardno\" type=\"text\" size=\"40\">\r\n");
      out.write("                    </div></td>\r\n");
      out.write("                  </tr>\r\n");
      out.write("                  <tr bgcolor=\"#E7F3F2\">\r\n");
      out.write("                    <td height=\"15\" colspan=\"2\">&nbsp;</td>\r\n");
      out.write("                  </tr>\r\n");
      out.write("                  <tr bgcolor=\"#E4E6E9\">\r\n");
      out.write("                    <td height=\"25\"><div align=\"center\" class=\"style4\">所在城市</div></td>\r\n");
      out.write("                    <td><div align=\"center\">\r\n");
      out.write("                      <select name=\"city\" id=\"city\">\r\n");
      out.write("                        <option value=\"北京\">北京</option>\r\n");
      out.write("                        <option value=\"锦州\">锦州</option>\r\n");
      out.write("                        <option value=\"上海\">上海</option>\r\n");
      out.write("                        <option value=\"沈阳\">沈阳</option>\r\n");
      out.write("                        <option value=\"其他\">其他</option>\r\n");
      out.write("                      </select>\r\n");
      out.write("                    </div></td>\r\n");
      out.write("                  </tr>\r\n");
      out.write("                  <tr bgcolor=\"#F1F2F3\">\r\n");
      out.write("                    <td height=\"15\" colspan=\"2\">&nbsp;</td>\r\n");
      out.write("                  </tr>\r\n");
      out.write("                  <tr bgcolor=\"#EDE4F7\">\r\n");
      out.write("                    <td height=\"25\"><div align=\"center\" class=\"style4\">邮编</div></td>\r\n");
      out.write("                    <td><div align=\"center\">\r\n");
      out.write("                      <input name=\"youbian\" type=\"text\" size=\"40\">\r\n");
      out.write("                    </div></td>\r\n");
      out.write("                  </tr>\r\n");
      out.write("                  <tr bgcolor=\"#F3EDFA\">\r\n");
      out.write("                    <td height=\"15\">&nbsp;</td>\r\n");
      out.write("                    <td>&nbsp;</td>\r\n");
      out.write("                  </tr>\r\n");
      out.write("                  <tr bgcolor=\"#F1F5FF\">\r\n");
      out.write("                    <td height=\"25\"><div align=\"center\" class=\"style2 style3\">电话</div></td>\r\n");
      out.write("                    <td><div align=\"center\">\r\n");
      out.write("                      <input name=\"tel\" type=\"text\" size=\"40\">\r\n");
      out.write("                    </div></td>\r\n");
      out.write("                  </tr>\r\n");
      out.write("                  <tr bgcolor=\"#F7F9FF\">\r\n");
      out.write("                    <td height=\"15\" colspan=\"2\">&nbsp;</td>\r\n");
      out.write("                  </tr>\r\n");
      out.write("                  <tr>\r\n");
      out.write("                    <td height=\"25\" colspan=\"2\" bgcolor=\"#CEE7E5\"><span class=\"style2\">    <span class=\"style3\">信息内容</span></span></td>\r\n");
      out.write("                  </tr>\r\n");
      out.write("                  <tr>\r\n");
      out.write("                    <td height=\"25\" colspan=\"2\" bgcolor=\"#E7F3F2\">&nbsp;&nbsp;&nbsp;\r\n");
      out.write("                    <textarea name=\"textarea\" cols=\"70\" rows=\"5\" id=\"textarea2\"></textarea></td>\r\n");
      out.write("                  </tr>\r\n");
      out.write("                  <tr>\r\n");
      out.write("                    <td height=\"23\" colspan=\"2\">              \r\n");
      out.write("                      <input type=\"button\" name=\"Submit3\" value=\"提交\" onClick=\"check1()\">\r\n");
      out.write("                          \r\n");
      out.write("                      <input type=\"reset\" name=\"Submit4\" value=\"重置\"> </td>\r\n");
      out.write("                  </tr>\r\n");
      out.write("                </table>\r\n");
      out.write("\t\t\t\t</form></td>\r\n");
      out.write("              </tr>\r\n");
      out.write("          </table>\r\n");
      out.write("</td>\r\n");
      out.write("  </tr></table>\r\n");
      out.write("</body>\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 + -