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

📄 t_005flogin_jsp.java

📁 自己写的一个网站,学生管理系,还有带自己写开发文档,可以用于高校学生管理,具体见文档
💻 JAVA
字号:
package org.apache.jsp;

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

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

  private static java.util.List _jspx_dependants;

  public Object 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("<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\"\r\n");
      out.write("\"http://www.w3.org/TR/html4/loose.dtd\">\r\n");
      out.write("\r\n");
      out.write("\r\n");

 String errmsg = request.getParameter("errmsg");
 request.getSession(true);
 String chk = "false";
 session.putValue("Enter",chk);

      out.write("\r\n");
      out.write("\r\n");
      out.write("<html><!-- InstanceBegin template=\"/Templates/one.dwt\" codeOutsideHTMLIsLocked=\"false\" -->\r\n");
      out.write("<head>\r\n");
      out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
      out.write("<!-- InstanceBeginEditable name=\"doctitle\" -->\r\n");
      out.write("<title>教师登录</title>\r\n");
      out.write("<!-- InstanceEndEditable --><style type=\"text/css\">\r\n");
      out.write("<!--\r\n");
      out.write(".style1 {\r\n");
      out.write("\tfont-size: xx-large;\r\n");
      out.write("\tfont-family: Arial, Helvetica, sans-serif;\r\n");
      out.write("}\r\n");
      out.write("-->\r\n");
      out.write("</style>\r\n");
      out.write("<!-- InstanceBeginEditable name=\"head\" -->\r\n");
      out.write("<style type=\"text/css\">\r\n");
      out.write("<!--\r\n");
      out.write(".style2 {\r\n");
      out.write("\tfont-family: \"宋体\";\r\n");
      out.write("\tfont-weight: bold;\r\n");
      out.write("}\r\n");
      out.write("body,td,th {\r\n");
      out.write("\tcolor: #0000FF;\r\n");
      out.write("}\r\n");
      out.write("-->\r\n");
      out.write("</style>\r\n");
      out.write("<link href=\"text.css\" rel=\"stylesheet\" type=\"text/css\">\r\n");
      out.write("<!-- InstanceEndEditable -->\r\n");
      out.write("</head>\r\n");
      out.write("\r\n");
      out.write("<body>\r\n");
      out.write("<table width=\"768\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#00CC99\">\r\n");
      out.write("  <!--DWLayoutTable-->\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td width=\"179\" height=\"4\"></td>\r\n");
      out.write("    <td width=\"589\"></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td height=\"69\" valign=\"top\"><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("      <!--DWLayoutTable-->\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td width=\"179\" height=\"69\" valign=\"top\"><img src=\"img/logo.jpg\" width=\"265\" height=\"109\"></td>\r\n");
      out.write("      </tr>\r\n");
      out.write("    </table></td>\r\n");
      out.write("    <td valign=\"top\"><p>&nbsp;</p>\r\n");
      out.write("    <p align=\"center\" class=\"style1\">欢迎您来到学生成绩管理系统</p>    </td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("<table width=\"768\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("  <!--DWLayoutTable-->\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td width=\"114\" height=\"33\">&nbsp;</td>\r\n");
      out.write("    <td width=\"654\">&nbsp;</td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td height=\"284\" valign=\"top\"><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("      <!--DWLayoutTable-->\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td width=\"114\" height=\"284\" valign=\"top\"><!-- InstanceBeginEditable name=\"1\" -->\r\n");
      out.write("        <table width=\"100\" height=\"150\" border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\" bgcolor=\"#FFCC33\">\r\n");
      out.write("            <tr>\r\n");
      out.write("              <td><div align=\"center\"><a href=\"index.jsp\">首页</a></div></td>\r\n");
      out.write("            </tr>\r\n");
      out.write("            <tr>\r\n");
      out.write("              <td><div align=\"center\"><a href=\"S_login.jsp\">学生天地</a></div></td>\r\n");
      out.write("            </tr>\r\n");
      out.write("            <tr>\r\n");
      out.write("              <td><div align=\"center\"><a href=\"T_login.jsp\">老师办公</a></div></td>\r\n");
      out.write("            </tr>\r\n");
      out.write("            <tr>\r\n");
      out.write("              <td><div align=\"center\"><a href=\"M_login.jsp\">管理设置</a></div></td>\r\n");
      out.write("            </tr>\r\n");
      out.write("          </table>\r\n");
      out.write("        <!-- InstanceEndEditable --></td>\r\n");
      out.write("      </tr>\r\n");
      out.write("    </table></td>\r\n");
      out.write("    <td valign=\"top\"><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("      <!--DWLayoutTable-->\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td width=\"651\" height=\"284\" valign=\"top\"><!-- InstanceBeginEditable name=\"2\" -->\r\n");
      out.write("          <p align=\"center\" class=\"style2\">&nbsp;</p>\r\n");
      out.write("          <p align=\"center\" class=\"style2\">教师登录</p>\r\n");
      out.write("          <form name=\"form1\" method=\"post\" action=\"chktin.jsp\">\r\n");
      out.write("            <table width=\"72%\" height=\"139\"  border=\"0\" align=\"center\">\r\n");
      out.write("              <tr bgcolor=\"#33CCFF\">\r\n");
      out.write("                <th width=\"25%\" scope=\"row\">用户ID:</th>\r\n");
      out.write("                <td width=\"75%\"><input name=\"tid\" type=\"text\" class=\"unnamed1\" id=\"tid\" size=\"8\">                </td>\r\n");
      out.write("              </tr>\r\n");
      out.write("              <tr bgcolor=\"#33CCFF\">\r\n");
      out.write("                <th scope=\"row\">密码:</th>\r\n");
      out.write("                <td><input name=\"tpwd\" type=\"password\" class=\"unnamed1\" id=\"tpwd\"></td>\r\n");
      out.write("              </tr>\r\n");
      out.write("              <tr bgcolor=\"#33CCFF\">\r\n");
      out.write("                <th height=\"51\" colspan=\"2\" scope=\"row\"><input type=\"submit\" name=\"Submit\" value=\"提交\"></th>\r\n");
      out.write("                </tr>\r\n");
      out.write("            </table>\r\n");
      out.write("          </form>\r\n");
      out.write("          <p>\r\n");
      out.write("          ");

          if(errmsg != null && errmsg.equals("error1"))
        		  out.print("您输入用户名或者密码不正确!请重新输入!");
          else if(errmsg != null && errmsg.equals("error2"))
        	  out.print("请先登陆!");
          
      out.write("</p>\r\n");
      out.write("          <p>&nbsp;</p>\r\n");
      out.write("          <p>&nbsp;</p>\r\n");
      out.write("          <p>&nbsp;</p>\r\n");
      out.write("        <!-- InstanceEndEditable --></td>\r\n");
      out.write("        <td width=\"3\">&nbsp;</td>\r\n");
      out.write("      </tr>\r\n");
      out.write("    </table></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("<table width=\"768\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("  <!--DWLayoutTable-->\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td width=\"768\" height=\"18\" valign=\"top\"><table width=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("      <!--DWLayoutTable-->\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td width=\"768\" height=\"18\" valign=\"top\"><div align=\"center\">版本信息</div></td>\r\n");
      out.write("      </tr>\r\n");
      out.write("    </table></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("</body>\r\n");
      out.write("<!-- InstanceEnd --></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 + -