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

📄 if_005flogin_jsp.java

📁 Email营销是在用户事先许可的前提下
💻 JAVA
字号:
package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import com.qq.content.*;

public final class if_005flogin_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=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');
      out.write('\n');
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "header.jsp", out, false);
      out.write('\r');
      out.write('\n');
  
	adminDealer UInfo = new adminDealer();	
	String urlUser = request.getParameter("user");
	String urlPwd = request.getParameter("passwd");
	String errorReport = null;

	
	System.out.println(urlUser);
	System.out.println(urlPwd);


	if(urlUser != null)
	{
		if(urlUser.length()>0)
		{
			String userName = urlUser;
			int groupID;
			int userID;

			if( UInfo.testUser(userName)>0)
			{
				System.out.println("There is such a user..........................................................");
				if(urlPwd!=null){
					if(UInfo.verifyPwd(userName,urlPwd)==0)
					{
						groupID = UInfo.getGroupID(userName);
						userID = UInfo.getUserID(userName);
						session.setAttribute("userID",""+userID);
						session.setAttribute("groupID",""+groupID);
						session.setAttribute("userName",userName);
						response.sendRedirect("if_main.jsp"); 

					}
					else
					{
						errorReport = "用户名或密码错误, 请重新输入";
					}	
				}
				else{
					errorReport = "用户名或密码错误, 请重新输入";
				}
			}
			else
			{

				System.out.println("There is NOT such a user..........................................................");		
			
				errorReport = "没有这个用户,请确认输入是否正确";			
			}
		}
		else
		{
				System.out.println("user is nothing");
		}
	
	}
	else
	{
		System.out.println("urlUser is NULL");
	}
     
      out.write(" \r\n");
      out.write("     \r\n");
      out.write("\r\n");
      out.write("  ");
if(errorReport!=null)
  {
      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("\t\t <table width=\"244\"  height=\"31\" border=\"0\" cellpadding=\"1\" cellspacing=\"1\">\r\n");
      out.write("\r\n");
      out.write("          <tr>\r\n");
      out.write("            <td width=\"240\" bgcolor=\"#FFFFFF\"><div align=\"right\"><span class=\"style3\"> ");
      out.print(errorReport);
      out.write("</span></div></td>\r\n");
      out.write("\r\n");
      out.write("          </tr>\r\n");
      out.write("          </table> \t\r\n");
      out.write("\t\r\n");
      out.write("  \t\t     ");
}
      out.write(" \t\r\n");
      out.write("<table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td height=\"30\">&nbsp;</td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("<table width=\"260\"  border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td><img src=\"./back/title_login.gif\" width=\"200\" height=\"34\"></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td bgcolor=\"buttonface\">\r\n");
      out.write("    <form name=\"form1\" action=\"if_login.jsp\" method=\"post\">\r\n");
      out.write("    <table width=\"100%\"  border=\"0\" cellspacing=\"1\" cellpadding=\"0\">\r\n");
      out.write("      <tr>\r\n");
      out.write("        <td  bgcolor=\"buttonface\" height=\"140\" bgcolor=\"#F4F4F4\">\r\n");
      out.write("        <table width=\"70%\"  border=\"0\" align=\"center\" cellpadding=\"0\" cellspacing=\"0\">\r\n");
      out.write("          <tr>\r\n");
      out.write("            <td height=\"25\">用户名:\r\n");
      out.write("              <input name=\"user\" type=\"text\" class=\"textbox-bg\" size=\"15\"></td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          <tr>\r\n");
      out.write("            <td height=\"25\">密&nbsp;&nbsp;码:\r\n");
      out.write("              <input name=\"passwd\" type=\"password\" class=\"textbox-bg\" size=\"15\"></td>\r\n");
      out.write("          </tr>\r\n");
      out.write("          <tr>\r\n");
      out.write("            <td height=\"40\" align=\"center\">\r\n");
      out.write("\t\t\t   <input name=\"imageField\" type=\"image\" src=\"./back/bt_login.gif\" width=\"73\" height=\"28\" border=\"0\"></td>\r\n");
      out.write("          </tr>\r\n");
      out.write("        </table></td>\r\n");
      out.write("      </tr>\r\n");
      out.write("    </table></form></td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("<table width=\"100%\"  border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
      out.write("  <tr>\r\n");
      out.write("    <td height=\"10\">&nbsp;</td>\r\n");
      out.write("  </tr>\r\n");
      out.write("</table>\r\n");
      out.write("<script language=\"javascript\" >\n");
      out.write("form1.user.focus();\n");
      out.write("</script>\r\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "footer.html", out, false);
    } 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 + -