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

📄 editpwdaction.java

📁 该系统采用了B/S结构模式
💻 JAVA
字号:
package org.mmxbb.exam.business.exam;

import org.apache.struts.action.*;
import org.mmxbb.exam.business.*;
import org.mmxbb.exam.dao.ExamineeDAO;

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

public class EditPwdAction extends Action {
  public ActionForward execute(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) {

    /**@todo: complete the business logic here, this is just a skeleton.*/
    EditAdminPwdActionForm editAdminPwdActionForm = (EditAdminPwdActionForm) actionForm;
    ExamineeDAO examineeDAO = null;
    String passwordPre = null;

    
    String examinee_id = null;
    HttpSession s = httpServletRequest.getSession();
    LogonBean logon = (LogonBean) s.getAttribute("logon");
    examinee_id = new String();
    examinee_id = logon.getLogon();
   
    passwordPre = new String();
    examineeDAO = new ExamineeDAO();
    try {
      passwordPre = examineeDAO.findByKey(examinee_id).getPassword();
    } catch (SQLException ex) {
      ex.printStackTrace();
    }
   
    String isAdmin = "false";

    editAdminPwdActionForm.setPasswordPre(passwordPre);
    editAdminPwdActionForm.setIsAdmin(isAdmin);
    return actionMapping.findForward("editpwd");
  }
}

⌨️ 快捷键说明

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