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

📄 main_jsp.java

📁 sql+struts+jsp 提供考试的一般需求
💻 JAVA
📖 第 1 页 / 共 5 页
字号:
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;
import javax.servlet.http.HttpSession;

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

  private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();

  private static java.util.List _jspx_dependants;

  static {
    _jspx_dependants = new java.util.ArrayList(5);
    _jspx_dependants.add("/WEB-INF/struts-tiles.tld");
    _jspx_dependants.add("/WEB-INF/struts-nested.tld");
    _jspx_dependants.add("/WEB-INF/struts-logic.tld");
    _jspx_dependants.add("/WEB-INF/struts-bean.tld");
    _jspx_dependants.add("/WEB-INF/struts-html.tld");
  }

  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fhtml_005fform_005fmethod_005faction;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fhtml_005fselect_005fproperty;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fhtml_005ftext_005fproperty_005fnobody;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fhtml_005fsubmit_005fvalue_005fproperty_005fnobody;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fhtml_005ftext_005fsize_005fproperty_005fnobody;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fhtml_005fpassword_005fsize_005fproperty_005fnobody;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fhtml_005fsubmit_005fproperty;
  private org.apache.jasper.runtime.TagHandlerPool _005fjspx_005ftagPool_005fbean_005fmessage_005fkey_005fnobody;

  private javax.el.ExpressionFactory _el_expressionfactory;
  private org.apache.AnnotationProcessor _jsp_annotationprocessor;

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspInit() {
    _005fjspx_005ftagPool_005fhtml_005fform_005fmethod_005faction = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fhtml_005fselect_005fproperty = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fhtml_005ftext_005fproperty_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fhtml_005fsubmit_005fvalue_005fproperty_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fhtml_005ftext_005fsize_005fproperty_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fhtml_005fpassword_005fsize_005fproperty_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fhtml_005fsubmit_005fproperty = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _005fjspx_005ftagPool_005fbean_005fmessage_005fkey_005fnobody = org.apache.jasper.runtime.TagHandlerPool.getTagHandlerPool(getServletConfig());
    _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
    _jsp_annotationprocessor = (org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.class.getName());
  }

  public void _jspDestroy() {
    _005fjspx_005ftagPool_005fhtml_005fform_005fmethod_005faction.release();
    _005fjspx_005ftagPool_005fhtml_005fselect_005fproperty.release();
    _005fjspx_005ftagPool_005fhtml_005ftext_005fproperty_005fnobody.release();
    _005fjspx_005ftagPool_005fhtml_005fsubmit_005fvalue_005fproperty_005fnobody.release();
    _005fjspx_005ftagPool_005fhtml_005ftext_005fsize_005fproperty_005fnobody.release();
    _005fjspx_005ftagPool_005fhtml_005fpassword_005fsize_005fproperty_005fnobody.release();
    _005fjspx_005ftagPool_005fhtml_005fsubmit_005fproperty.release();
    _005fjspx_005ftagPool_005fbean_005fmessage_005fkey_005fnobody.release();
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    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 {
      response.setContentType("text/html;charset=GBK");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, 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");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<title>Untitled Document</title>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html;\">\r\n");
      out.write("<link href=\"style.css\" rel=\"stylesheet\" type=\"text/css\">\r\n");
      out.write("<style type=\"text/css\">\r\n");
      out.write("<!--\r\n");
      out.write("#Layer3 {\r\n");
      out.write("\tposition:absolute;\r\n");
      out.write("\tleft:45px;\r\n");
      out.write("\ttop:266px;\r\n");
      out.write("\twidth:200px;\r\n");
      out.write("\theight:83px;\r\n");
      out.write("\tz-index:3;\r\n");
      out.write("}\r\n");
      out.write(".STYLE1 {color: #FFFFFF}\r\n");
      out.write(".STYLE2 {color: #CC3333}\r\n");
      out.write(".STYLE11 {color: #FFFFFF; font-size: 13px; }\r\n");
      out.write(".STYLE12 {color: #666666}\r\n");
      out.write(".STYLE13 {font-family: \"新宋体\"}\r\n");
      out.write(".STYLE14 {color: #FFFFFF; font-size: 13px; font-family: \"新宋体\"; }\r\n");
      out.write(".STYLE16 {color: #333333}\r\n");
      out.write(".STYLE17 {\r\n");
      out.write("\tfont-family: \"新宋体\";\r\n");
      out.write("\tcolor: #666666;\r\n");
      out.write("\tfont-size: medium;\r\n");
      out.write("}\r\n");
      out.write(".STYLE18 {color: #666666; font-family: \"新宋体\"; }\r\n");
      out.write(".STYLE20 {color: #666666; font-size: 12px; }\r\n");
      out.write(".STYLE21 {font-size: 12px}\r\n");
      out.write(".STYLE22 {font-family: \"新宋体\"; font-size: 14px; }\r\n");
      out.write(".STYLE23 {color: #666666; font-size: 13px; }\r\n");
      out.write(".STYLE24 {color: #000000}\r\n");
      out.write(".STYLE25 {color: #000000; font-size: 12px; }\r\n");
      out.write("-->\r\n");
      out.write("</style>\r\n");
      out.write("</head>\r\n");
      out.write("\r\n");
      out.write("<body leftmargin=\"0\" topmargin=\"0\" marginwidth=\"0\" marginheight=\"0\">\r\n");

 try{
 Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
  }catch(Exception e){}
  try{
    Connection con=java.sql.DriverManager.getConnection("jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=examnet","sa","sa");
    Statement stmt=con.createStatement();
      out.write("\r\n");
      out.write("<table width=\"950\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td height=\"65\"><table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("        <tr>\r\n");
      out.write("          <td width=\"210\"><div align=\"right\"><img src=\"images/logo.jpg\" width=\"197\" height=\"65\"></div></td>\r\n");
      out.write("          <td valign=\"top\"><table border=\"0\" align=\"right\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("              <tr>\r\n");
      out.write("                <td colspan=\"8\"><img src=\"images/blank.gif\" width=\"1\" height=\"15\"></td>\r\n");
      out.write("              </tr>\r\n");
      out.write("              <tr>\r\n");
      out.write("                <td>&nbsp;</td>\r\n");
      out.write("                <td width=\"1\"><img src=\"images/topmn_dot.gif\" width=\"1\" height=\"25\"></td>\r\n");
      out.write("                <td width=\"49\"><a href=\"#\"><img src=\"images/topmn_4.gif\" width=\"49\" height=\"25\" border=\"0\"></a></td>\r\n");
      out.write("                <td width=\"1\"><img src=\"images/topmn_dot.gif\" width=\"1\" height=\"25\"></td>\r\n");
      out.write("                <td width=\"60\"><a href=\"#\"><img src=\"images/topmn_5.gif\" width=\"60\" height=\"25\" border=\"0\"></a></td>\r\n");
      out.write("                <td width=\"1\"><img src=\"images/topmn_dot.gif\" width=\"1\" height=\"25\"></td>\r\n");
      out.write("                <td width=\"51\"><a href=\"#\"><img src=\"images/topmn_6.gif\" width=\"51\" height=\"25\" border=\"0\"></a></td>\r\n");
      out.write("                <td><img src=\"images/blank.gif\" width=\"14\" height=\"1\"></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("  <tr>\r\n");
      out.write("    <td><table width=\"950\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" background=\"images/top_bg.gif\">\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td width=\"15\">&nbsp;</td>\r\n");
      out.write("        <td width=\"145\">&nbsp;</td>\r\n");
      out.write("        <td colspan=\"3\" valign=\"top\">&nbsp;</td>\r\n");
      out.write("        <td width=\"162\" height=\"80\" rowspan=\"5\" align=\"right\"><img src=\"images/top_bnr02.gif\" width=\"87\" height=\"80\"><img src=\"images/top_bnr03.gif\" width=\"74\" height=\"80\"></td>\r\n");
      out.write("        <td width=\"14\" height=\"29\">&nbsp;</td>\r\n");
      out.write("      </tr>\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td width=\"15\" rowspan=\"4\"><img src=\"images/top_img1.gif\" width=\"15\" height=\"61\"></td>\r\n");
      out.write("        <td width=\"145\" height=\"61\" rowspan=\"4\"><img src=\"images/top_bnr.gif\" width=\"131\" height=\"61\"></td>\r\n");
      out.write("        <td height=\"7\" colspan=\"3\" valign=\"top\"></td>\r\n");
      out.write("        <td width=\"14\" rowspan=\"4\" align=\"right\"><img src=\"images/top_img2.gif\" width=\"14\" height=\"61\"></td>\r\n");
      out.write("      </tr>\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td width=\"34\" valign=\"top\">&nbsp;</td>\r\n");
      out.write("        <td width=\"561\" align=\"right\" valign=\"top\"><a href=\"#\"><img src=\"images/mn_01.gif\" width=\"80\" height=\"27\" border=\"0\"></a><a href=\"#\"><img src=\"images/mn_03.gif\" width=\"80\" height=\"27\" border=\"0\"></a><a href=\"#\"><img src=\"images/mn_02.gif\" width=\"80\" height=\"27\" border=\"0\"></a><a href=\"#\"><img src=\"images/mn_04.gif\" width=\"80\" height=\"27\" border=\"0\"></a><a href=\"#\"><img src=\"images/mn_06.gif\" width=\"80\" height=\"27\" border=\"0\"><img src=\"images/mn_05.gif\" width=\"80\" height=\"27\" border=\"0\"></a><a href=\"#\"><img src=\"images/mn_07.gif\" width=\"80\" height=\"27\" border=\"0\"></a></td>\r\n");
      out.write("        <td width=\"19\" valign=\"top\">&nbsp;</td>\r\n");

⌨️ 快捷键说明

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