📄 deluseraction.java
字号:
package registerapp;import org.apache.struts.action.*;import javax.servlet.http.*;import net.yefei.cmn.user.*;/** @author ye fei* @version 1.00, 2003/04/15* @copyright www.studyjava.com*/public class DelUserAction extends Action { public ActionForward perform(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) { DelUserForm rf = (DelUserForm) actionForm; int[] userid = rf.getUserid();// Validate the request parameters specified by the user ActionErrors errors = new ActionErrors(); try { User user=new User(); user.DeleteUserInfo(userid); } catch (Exception e) { errors.add(ActionErrors.GLOBAL_ERROR, new ActionError("error.password.mismatch")); } if (!errors.empty()) { saveErrors(httpServletRequest, errors); return (new ActionForward(actionMapping.getInput())); } return actionMapping.findForward("success");}}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -