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

📄 aa_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;
import liangjuyan.chStr;

public final class aa_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();
  chStr chStr=new chStr();

  ResultSet rs_s = conn.executeQuery("select * from type_detail");
  int type_id = 0;
  String type_name="";
   ResultSet rs_shi= conn.executeQuery("select * from stype_detail");
  int stype_id = 0;
  String stype_name="";
 ResultSet rs_sheng = conn.executeQuery("select * from htype_detail");
  int htype_id = 0;
  String htype_name="";
 ResultSet rs_qi = conn.executeQuery("select * from qtype_detail");
  int qtype_id = 0;
  String qtype_name="";
  
      out.write("\r\n");
      out.write("<table bordercolor=\"#CCCCCC\" bgcolor=\"#dde8ff\" width=\"182\" >\r\n");
      out.write(" <tr>\r\n");
      out.write("    <td height=\"112\" valign=\"top\" width=\"174\"><table width=\"100%\" height=\"112\" background=\"images/gaaaj.gif\">\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td colspan=\"2\"><div align=\"center\"><img src=\"images/xiao.png\" width=\"7\" height=\"7\"> &#39280;&#21697;</div></td>\r\n");
      out.write("        </tr>\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td><img src=\"images/ga.gif\" width=\"50\" height=\"50\"></td>\r\n");
      out.write("        <td><table width=\"100%\" height=\"34\" >\r\n");
      out.write("                        <tr>\r\n");
      out.write("                          <td height=\"28\" valign=\"top\">\r\n");
      out.write("\r\n");
      out.write("                 <table width=\"100%\"><tr>\r\n");
      out.write("                     ");
 int a=1;
                  while (rs_shi.next()) {
                   stype_id=rs_shi.getInt(1);
                     stype_name=rs_shi.getString(2);
                  if(a%3!=0){
      out.write("\r\n");
      out.write("                   <td width=\"46\"><a href=\"sdetail.jsp?ID=");
      out.print(stype_id);
      out.write('"');
      out.write('>');
      out.print(stype_name);
      out.write("</a></td>");
}
      out.write("\r\n");
      out.write("\r\n");
      out.write("                       ");
if(a%3==0) {
      out.write("   <td width=\"46\">&nbsp;<a href=\"sdetail.jsp?ID=");
      out.print(stype_id);
      out.write('"');
      out.write('>');
      out.print(stype_name);
      out.write("</a></td></tr>");
}
      out.write("\r\n");
      out.write("                              ");

                       a++;}
                        int count=rs_s.getRow();
                          if(count%3!=0){
}
      out.write("\r\n");
      out.write("                      </table>                    </td>\r\n");
      out.write("          </tr></table></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=\"112\" valign=\"top\" width=\"174\"><div align=\"center\">\r\n");
      out.write("                       <table width=\"100%\" height=\"112\" background=\"images/gaaah.gif\" >\r\n");
      out.write("                         <tr>\r\n");
      out.write("                           <td colspan=\"2\"><div align=\"center\"><img src=\"images/xiao.png\" width=\"7\" height=\"7\"> &#29983;&#27963;&#29992;&#21697;</div></td>\r\n");
      out.write("                         </tr>\r\n");
      out.write("                         <tr>\r\n");
      out.write("                           <td width=\"33%\"><img src=\"images/gaaaaa.gif\" width=\"50\" height=\"50\"></td>\r\n");
      out.write("                           <td width=\"67%\"><table width=\"100%\" height=\"38\" >\r\n");
      out.write("                        <tr>\r\n");
      out.write("                          <td height=\"32\" valign=\"top\">\r\n");
      out.write("\r\n");
      out.write("                 <table width=\"100%\"><tr>\r\n");
      out.write("                     ");
  int b=1;
                  while (rs_sheng.next()) {
                   htype_id=rs_sheng.getInt(1);
                     htype_name=rs_sheng.getString(2);
                  if(b%3!=0){
      out.write("\r\n");
      out.write("                   <td width=\"46\"><a href=\"hdetail.jsp?ID=");
      out.print(htype_id);
      out.write('"');
      out.write('>');
      out.print(htype_name);
      out.write("</a></td>");
}
      out.write("\r\n");
      out.write("\r\n");
      out.write("                       ");
if(b%3==0) {
      out.write("   <td width=\"46\">&nbsp;<a href=\"hdetail.jsp?ID=");
      out.print(htype_id);
      out.write('"');
      out.write('>');
      out.print(htype_name);
      out.write("</a></td></tr>");
}
      out.write("\r\n");
      out.write("                              ");

                       b++;}
                       
                          if(count%3!=0){
}
      out.write("\r\n");
      out.write("                      </table>                    </td>\r\n");
      out.write("                  </tr></table></td>\r\n");
      out.write("                         </tr>\r\n");
      out.write("                       </table>\r\n");
      out.write("                    </div></td>\r\n");
      out.write("                  </tr>\r\n");
      out.write("                  <tr>\r\n");
      out.write("                    <td height=\"112\" valign=\"top\" width=\"174\"><div align=\"center\">\r\n");
      out.write("                      <table width=\"100%\" background=\"images/gaaak.gif\" >\r\n");
      out.write("                        <tr>\r\n");
      out.write("                          <td colspan=\"2\"><div align=\"center\"><img src=\"images/xiao.png\" width=\"7\" height=\"7\"> &#20854;&#20182;</div></td>\r\n");
      out.write("                        </tr>\r\n");
      out.write("                        <tr>\r\n");
      out.write("                          <td width=\"34%\" height=\"82\"><img src=\"images/gga.gif\" width=\"50\" height=\"50\"></td>\r\n");
      out.write("                          <td width=\"66%\"><table width=\"100%\" height=\"36\" >\r\n");
      out.write("                        <tr>\r\n");
      out.write("                          <td height=\"30\" valign=\"top\">\r\n");
      out.write("\r\n");
      out.write("                 <table width=\"100%\"><tr>\r\n");
      out.write("                     ");
  int c=1;
                  while (rs_qi.next()) {
                   qtype_id=rs_qi.getInt(1);
                     qtype_name=rs_qi.getString(2);
                  if(c%3!=0){
      out.write("\r\n");
      out.write("                   <td width=\"46\"><a href=\"qdetail.jsp?ID=");
      out.print(qtype_id);
      out.write('"');
      out.write('>');
      out.print(qtype_name);
      out.write("</a></td>");
}
      out.write("\r\n");
      out.write("\r\n");
      out.write("                       ");
if(c%3==0) {
      out.write("   <td width=\"46\">&nbsp;<a href=\"qdetail.jsp?ID=");
      out.print(qtype_id);
      out.write('"');
      out.write('>');
      out.print(qtype_name);
      out.write("</a></td></tr>");
}
      out.write("\r\n");
      out.write("                              ");

                       c++;}
                      
                          if(count%3!=0){
}
      out.write("\r\n");
      out.write("                      </table>                    </td>\r\n");
      out.write("                  </tr></table></td>\r\n");
      out.write("                        </tr>\r\n");
      out.write("                      </table>\r\n");
      out.write("                    </div></td>\r\n");
      out.write("                  </tr>\r\n");
      out.write("                  <tr>\r\n");
      out.write("                    <td height=\"112\" valign=\"top\" width=\"174\"><table width=\"100%\" height=\"112\" background=\"images/gaaa.gif\" >\r\n");
      out.write("       <tr><td></tr>\r\n");
      out.write("        <tr>\r\n");
      out.write("          <td colspan=\"2\"><div align=\"center\"><img src=\"images/xiao.png\" width=\"7\" height=\"7\"> &#26381;&#35013;</div></td>\r\n");
      out.write("        </tr>\r\n");
      out.write("        <tr>\r\n");
      out.write("          <td width=\"22%\" height=\"81\"><div align=\"center\"><img src=\"images/liaaa.gif\" width=\"50\" height=\"50\"></div></td>\r\n");
      out.write("          <td width=\"78%\"><table width=\"100%\" height=\"34\" >\r\n");
      out.write("                        <tr>\r\n");
      out.write("                          <td height=\"28\" valign=\"top\">\r\n");
      out.write("\r\n");
      out.write("                 <table width=\"100%\"><tr>\r\n");
      out.write("                     ");
  int s=1;
                  while (rs_s.next()) {
                   type_id=rs_s.getInt(1);
                     type_name=rs_s.getString(2);
                  if(s%3!=0){
      out.write("\r\n");
      out.write("                   <td width=\"42\"><a href=\"detail.jsp?ID=");
      out.print(type_id);
      out.write('"');
      out.write('>');
      out.print(type_name);
      out.write("</a></td>");
}
      out.write("\r\n");
      out.write("                 ");
if(s%3==0) {
      out.write("   <td width=\"46\">&nbsp;<a href=\"detail.jsp?ID=");
      out.print(type_id);
      out.write('"');
      out.write('>');
      out.print(type_name);
      out.write("</a></td></tr>");
}
      out.write("\r\n");
      out.write("                              ");

                       s++;}
                       
                          if(count%3!=0){
}
      out.write("\r\n");
      out.write("                      </table>                    </td>\r\n");
      out.write("                  </tr></table></td>\r\n");
      out.write("        </tr>\r\n");
      out.write("      </table></td>\r\n");
      out.write("                  </tr>\r\n");
      out.write("                 \r\n");
      out.write("              </table>\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 + -