AdminChangePassword.java
上传用户:quasar007
上传日期:2022-08-11
资源大小:4067k
文件大小:1k
- package com.webtier.manager;
- import org.apache.struts.action.ActionMapping;
- import org.apache.struts.action.ActionForm;
- import javax.servlet.http.HttpServletRequest;
- import javax.servlet.http.HttpServletResponse;
- import org.apache.struts.action.ActionForward;
- import org.apache.struts.action.Action;
- import com.domain.UserForm;
- import com.service.UserFacade;
- import com.service.UserFacadeImpl;
- //修改密码之前先查询出密码
- public class AdminChangePassword
- extends Action {
- private UserFacade facade = null;
- public AdminChangePassword() {
- this.facade = new UserFacadeImpl();
- }
- public ActionForward perform(ActionMapping actionMapping,
- ActionForm actionForm,
- HttpServletRequest servletRequest,
- HttpServletResponse servletResponse) {
- UserForm userForm = (UserForm) actionForm;
- userForm.setUser_name(servletRequest.getParameter("name"));
- UserForm user = this.facade.checkUser(userForm);
- servletRequest.setAttribute("mm", user.getUser_mm());
- return actionMapping.findForward("adminChangePassword");
- }
- }