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

📄 if_005fchmodpwd_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_005fchmodpwd_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,
      			"", 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');

	String gid = (String)session.getAttribute("groupID");
	String uid = (String)session.getAttribute("userID");
	String uname = (String)session.getAttribute("userName");

	if ( (gid == null)||(uname==null))
	{
		System.out.println("rdirect from main.jsp to login.jsp");
		response.sendRedirect("if_login.jsp"); 
		return;
	}


      out.write('\r');
      out.write('\n');

String oldpwd = request.getParameter("oldpwd");
String new1 = request.getParameter("new1");
String new2 = request.getParameter("new2");
String show = "";
	if(new1.equals(new2)){
		adminDealer dealer = new adminDealer();
		try{
			if(oldpwd==null) oldpwd="";
			int testpwd = dealer.verifyPwd(uname,oldpwd);
			if(testpwd!=0)
			{
				show = "您输入的密码不正确";
			}
			else
			{
				dealer.chpwd(uname,new1);
				show = "密码更改成功";
			}

		}catch (Exception e)
		{
			show = "发生错误";
		}
	
	}
	else{
		show = "两次输入的新密码不一致";
	}	

      out.write("\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<br>\r\n");
      out.write("<div class=\"mainbar4\" id=\"boardmaster\">\r\n");
      out.write("<div id=\"boardmanage\"></div>\r\n");
      out.write("<div style=\"float:center;text-indent:5px;\" id=\"masterpic\"></div><center>系统提示</center>\r\n");
      out.write("</div>\r\n");
      out.write("<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" style=\"text-indent:0px; \r\n");
      out.write("border: 1px solid #6595d6;\r\n");
      out.write("width : 98%;min-width :760px;margin : 0 auto;background-color : buttonface;\">\r\n");
      out.write("  <tr><TD height=20></TD></tr>\r\n");
      out.write("  <tr >\r\n");
      out.write("   <td   style=\"border-bottom : 0px; width : 98%;min-width :760px;margin : 0 auto;\r\n");
      out.write("      background-color : buttonface;font-size : 12px;line-height : 20px; text-align : center;text-indent: 5px;\">      \r\n");
      out.write("   <br>");
      out.print(uname);
      out.write(':');
      out.print(show);
      out.write("<br><br><br>   \r\n");
      out.write("   </td>\r\n");
      out.write(" </tr>\r\n");
      out.write("</table>\r\n");
      out.write("<br>\r\n");
      out.write("\r\n");
      out.write("\r\n");
      out.write("<br>\r\n");
      out.write("<input onClick=\"window.location.href='if_system.jsp'\" class=\"mybutton\" value=\"返回\" type=\"button\"> \r\n");
      out.write("<input onClick=\"indow.location.href='if_main.jsp'\" class=\"mybutton\" value=\"首页\" type=\"button\"> \r\n");
      out.write("\r\n");
      org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "footer.html", out, false);
      out.write('\r');
      out.write('\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 + -