UserUpdateRight.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 com.domain.UserForm;
- import org.apache.struts.action.Action;
- import com.service.UserFacade;
- import com.service.UserFacadeImpl;
- //修改权利
- public class UserUpdateRight
- extends Action {
- private UserFacade facade = null;
- public UserUpdateRight() {
- this.facade = new UserFacadeImpl();
- }
- public ActionForward perform(ActionMapping actionMapping,
- ActionForm actionForm,
- HttpServletRequest servletRequest,
- HttpServletResponse servletResponse) {
- UserForm userForm = (UserForm) actionForm;
- userForm.setUser_id(servletRequest.getParameter("id"));
- userForm.setMenu_jcxx(servletRequest.getParameter("jcxx"));
- userForm.setMenu_khxx(servletRequest.getParameter("khxx"));
- userForm.setMenu_khfw(servletRequest.getParameter("khfw"));
- userForm.setMenu_sjgl(servletRequest.getParameter("sjgl"));
- userForm.setMenu_fzgj(servletRequest.getParameter("fzgj"));
- userForm.setMenu_xxcx(servletRequest.getParameter("xxcx"));
- this.facade.updateUserRight(userForm);
- return actionMapping.findForward("userUpdateRight");
- }
- }