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

📄 login_jsp.java

📁 新闻发布系统
💻 JAVA
字号:
package org.apache.jsp;

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

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

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

  private static java.util.Vector _jspx_dependants;

  private org.apache.jasper.runtime.ResourceInjector _jspx_resourceInjector;

  public Object getDependants() {
    return _jspx_dependants;
  }

  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=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;
      _jspx_resourceInjector = (org.apache.jasper.runtime.ResourceInjector) application.getAttribute("com.sun.appserv.jsp.resource.injector");

      out.write("\r\n");
      out.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\r\n");
      out.write("<html xmlns=\"http://www.w3.org/1999/xhtml\">\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(".STYLE1 {color: #FFFFFF}\r\n");
      out.write(".STYLE2 {\r\n");
      out.write("\tfont-size: x-large;\r\n");
      out.write("\tcolor: #BF0000;\r\n");
      out.write("\tfont-family: Arial, Helvetica, sans-serif;\r\n");
      out.write("}\r\n");
      out.write("-->\r\n");
      out.write(".boxBorder\r\n");
      out.write("{\r\n");
      out.write("border-width:1px;\r\n");
      out.write("border-style:solid;\r\n");
      out.write("}\r\n");
      out.write(".picButton\r\n");
      out.write("{\r\n");
      out.write("background-image:url(images/bgbtn1.jpg);\r\n");
      out.write("\r\n");
      out.write("border:0px;\r\n");
      out.write("margin:0px;\r\n");
      out.write("padding:0px;\r\n");
      out.write("height:23px;\r\n");
      out.write("width:82px;\r\n");
      out.write("font-size:14px;\r\n");
      out.write("}\r\n");
      out.write(".picButton1\r\n");
      out.write("{\r\n");
      out.write("background-image:url(images/bgbtn2.jpg);\r\n");
      out.write("border:0px;\r\n");
      out.write("margin:0px;\r\n");
      out.write("padding:0px;\r\n");
      out.write("height:23px;\r\n");
      out.write("width:82px;\r\n");
      out.write("font-size:14px;\r\n");
      out.write("}\r\n");
      out.write("\r\n");
      out.write("</style>\r\n");
      out.write("<script language=\"javascript\">\r\n");
      out.write("function  vertify()\r\n");
      out.write("{ if(document.getElementById(\"name\").value==\"\")\r\n");
      out.write("   {alert(\"用户名不能为空!\");\r\n");
      out.write("   document.getElementById(\"name\").focus();\r\n");
      out.write("   return false;\r\n");
      out.write("   }\r\n");
      out.write("   if(document.getElementById(\"password\").value==\"\")\r\n");
      out.write("   {\r\n");
      out.write("     alert(\"密码不能为空!\");\r\n");
      out.write("\t document.getElementById(\"password\").focus();\r\n");
      out.write("\t return false;\r\n");
      out.write("   }\r\n");
      out.write("   return true;\r\n");
      out.write("\r\n");
      out.write("}\r\n");
      out.write("</script>\r\n");
      out.write("</head>\r\n");
      out.write("\r\n");
      out.write("<body align=\"center\">\r\n");
      out.write("<form id=\"form1\" name=\"form1\" method=\"post\" action=\"loginAction.jsp\" onsubmit=\" return  vertify()\">\r\n");
      out.write("  <table width=\"999\" height=\"647\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bordercolor=\"#FFCCFF\" bgcolor=\"#FFCCFF\">\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td colspan=\"4\" align=\"center\" bgcolor=\"#FFCCFF\"><div align=\"center\"><img src=\"images/bk2.jpg\" width=\"263\" height=\"139\" /></div></td>\r\n");
      out.write("    </tr>\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td colspan=\"4\"><div align=\"center\" class=\"STYLE2\">欢迎进入新闻发布系统</div></td>\r\n");
      out.write("    </tr>\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td width=\"482\" height=\"43\"><div align=\"right\">用户名:</div></td>\r\n");
      out.write("      <td colspan=\"3\"><label>\r\n");
      out.write("        <input type=\"text\" name=\"name\"  id =\"name\" class=\"boxBorder\" onmouseover=\"this.style.borderColor='red'\" onmouseout=\"this.style.borderColor=''\" />\r\n");
      out.write("      </label></td>\r\n");
      out.write("    </tr>\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td height=\"33\"><div align=\"right\">密码:</div></td>\r\n");
      out.write("      <td colspan=\"3\"><label>\r\n");
      out.write("        <input type=\"password\" name=\"pwd\"  id=\"password\" class=\"boxBorder\" onmousemove=\"this.style.borderColor='red'\" onmouseout=\"this.style.borderColor=''\" />\r\n");
      out.write("      </label></td>\r\n");
      out.write("    </tr>\r\n");
      out.write("    <tr>\r\n");
      out.write("      <td height=\"113\"><label>\r\n");
      out.write("        <div align=\"right\">\r\n");
      out.write("          <input type=\"submit\" name=\"Submit\" value=\"登录\" class=\"picButton\" onmouseover=\"this.className='picButton1'\" onmouseout=\"this.className='picButton'\" />\r\n");
      out.write("        </div>\r\n");
      out.write("      </label></td>\r\n");
      out.write("      <td width=\"53\"><label></label></td>\r\n");
      out.write("      <td width=\"135\"><label></label>\r\n");
      out.write("      <div align=\"center\">\r\n");
      out.write("        <input type=\"reset\" name=\"Submit2\" value=重置 class=\"picButton\"  onmouseover=\"this.className='picButton'\" onmouseout=\"this.className='picButton1'\"/>\r\n");
      out.write("      </div></td>\r\n");
      out.write("      <td width=\"339\"><A href=\"register.jsp\">注册成为新用户</A></td>\r\n");
      out.write("    </tr>\r\n");
      out.write("  </table>\r\n");
      out.write("  <label></label>\r\n");
      out.write("  \r\n");
      out.write("</form>\r\n");
      out.write("<span class=\"STYLE1\"></span>\r\n");
      out.write("\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 {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}

⌨️ 快捷键说明

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