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

📄 userlogin_jsp.java

📁 做的非常好的论坛
💻 JAVA
字号:
package org.apache.jsp.bbs;

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

public final class userlogin_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,
      			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("<html>\r\n");
      out.write("<head>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
      out.write("<link href=\"../css/xmwuye.css\" rel=\"stylesheet\" type=\"text/css\">\r\n");
      out.write("<title>用户登录</title>\r\n");
      out.write("</head>\r\n");
      out.write("<script language=\"javascript\">\r\n");
      out.write("<!--\r\n");
      out.write("\tfunction check(form)\r\n");
      out.write("\t{\r\n");
      out.write("    if (form.bbsuser.value==\"\")\r\n");
      out.write("    \t{\r\n");
      out.write("    \t\talert(\"请填写用户名!\");\r\n");
      out.write("    \t\tform.bbsuser.focus();\r\n");
      out.write("    \t\treturn false;\r\n");
      out.write("  \t}\r\n");
      out.write("    if (form.password.value==\"\")\r\n");
      out.write("    \t{\r\n");
      out.write("    \t\talert(\"请填写密码!\");\r\n");
      out.write("    \t\tform.password.focus();\r\n");
      out.write("    \t\treturn false;\r\n");
      out.write("  \t}\r\n");
      out.write("    if (form.useryz.value==\"\")\r\n");
      out.write("    \t{\r\n");
      out.write("    \t\talert(\"请输入验证码!\");\r\n");
      out.write("    \t\tform.useryz.focus();\r\n");
      out.write("    \t\treturn false;\r\n");
      out.write("  \t}\r\n");
      out.write("return true;\r\n");
      out.write("\t}\r\n");
      out.write("//-->\r\n");
      out.write("</script>\r\n");
      out.write("<body leftmargin=\"8\" topmargin=\"0\">\r\n");
      out.write("<FORM METHOD=POST ACTION=\"userloginact.jsp\" onsubmit=\"return check(this)\">\r\n");
      out.write("  <br>\r\n");
      out.write("  <br>\r\n");
      out.write("  <br>\r\n");
      out.write("  <br>\r\n");
      out.write("  <br>\r\n");
      out.write("  <br>\r\n");
      out.write("  <table width=\"35%\" border=\"0\" align=\"center\" bgcolor=\"#333333\" cellspacing=\"1\" cellpadding=\"0\">\r\n");
      out.write("    <tr bgcolor=\"#9999cc\"> \r\n");
      out.write("      <td colspan=\"2\" height=\"25\"> \r\n");
      out.write("        <div align=\"center\"><font color=\"#FFFFFF\">用户登录,请先输入用户名和密码</font></div>\r\n");
      out.write("      </td>\r\n");
      out.write("    </tr>\r\n");
      out.write("\r\n");
      out.write("    <tr bgcolor=\"#F8F8F8\" height=25> \r\n");
      out.write("\t  <TD> \r\n");
      out.write("        <div align=\"right\">用户名:</div>\r\n");
      out.write("      </TD>\r\n");
      out.write("\t<TD>\r\n");
      out.write("\t&nbsp;\r\n");
      out.write("        <INPUT TYPE=\"text\" NAME=\"bbsuser\" class=\"input\" size=\"15\">\r\n");
      out.write("      </TD>\r\n");
      out.write("</TR>\r\n");
      out.write("    <tr bgcolor=\"#F8F8F8\" height=25> \r\n");
      out.write("\t  <TD> \r\n");
      out.write("        <div align=\"right\">密 码:</div>\r\n");
      out.write("      </TD>\r\n");
      out.write("\t<TD>\r\n");
      out.write("\t&nbsp;\r\n");
      out.write("        <INPUT TYPE=\"password\" NAME=\"password\" class=\"input\" size=\"15\">\r\n");
      out.write("      </TD>\r\n");
      out.write("</TR>\r\n");
      out.write("    <tr bgcolor=\"#F8F8F8\" height=25> \r\n");
      out.write("\t  <TD height=\"22\"> \r\n");
      out.write("        <div align=\"right\">验证码:</div>\r\n");
      out.write("      </TD>\r\n");
      out.write("\t<TD>\r\n");
      out.write("\t&nbsp;\r\n");
      out.write("        <INPUT NAME=\"useryz\" TYPE=\"text\" class=\"input\" id=\"useryz\" size=\"4\">\r\n");
      out.write("        <img src=\"image.jsp\" border=0 align=\"absmiddle\"> </TD>\r\n");
      out.write("</TR>\r\n");
      out.write("    <tr bgcolor=\"#F8F8F8\" align=center> \r\n");
      out.write("\t  <TD colspan=2 height=\"30\">\r\n");
      out.write("        <input type=\"hidden\" name=\"act\" value=\"y\">\r\n");
      out.write("        <INPUT TYPE=\"submit\" value=\"登录\" name=\"\" class=\"button\">\r\n");
      out.write("        <A HREF=\"register.jsp\"><FONT COLOR=\"blue\">[注册新用户]</FONT></A> </TD>\r\n");
      out.write("</TR>\r\n");
      out.write("</TABLE>\r\n");
      out.write("</FORM>\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 + -