updateconsumeraction.java~6~

来自「一、数据库登录名:blog 密码:blog 二、首页应该运行log.jsp页面」· JAVA~6~ 代码 · 共 29 行

JAVA~6~
29
字号
package Action;

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 ActionForm.ConsumerActionForm;
import org.apache.struts.action.Action;
import OperationDB.*;
import javax.servlet.http.HttpSession;
public class UpdateConsumerAction extends Action {
    public ActionForward execute(ActionMapping mapping, ActionForm form,
                                 HttpServletRequest request,
                                 HttpServletResponse response) {
        ConsumerActionForm consumerActionForm = (ConsumerActionForm) form;

            operation o=new operation();
             boolean flag=o.updateConsumer(consumerActionForm);

             if(flag){
                    return  mapping.findForward("success");
           }
           else{return mapping .findForward(" ");}
             }

}

⌨️ 快捷键说明

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