📄 appaction.java
字号:
package com.huawei.icd30.agt.configmng;
import org.apache.struts.action.*;
import javax.servlet.http.*;
import com.huawei.icd30.common.systemconfig.*;
import java.io.IOException;
import com.huawei.icd30.agt.util.*;
public final class AppAction extends Action {
public ActionForward perform(ActionMapping actionMapping, ActionForm actionForm, HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse)
{
Initor.systemConfig.put("agt/calendarNotify",((AppActionForm)actionForm).getCalendarNotify());
Initor.systemConfig.put("agt/planNotify",((AppActionForm)actionForm).getPlanNotify());
Initor.systemConfig.put("agt/examNotify",((AppActionForm)actionForm).getExamNotify());
Initor.systemConfig.put("agt/lessonNotify",((AppActionForm)actionForm).getLessonNotify());
try
{
Initor.systemConfig.flush();
}
catch(IOException ex)
{
ex.printStackTrace();
httpServletRequest.setAttribute("errorId",ErrorCode.UNKNOW_ERROR);
return (actionMapping.findForward("error"));
}
httpServletRequest.setAttribute("successId",SuccessCode.CONFIGMUMOD_SUCCESS);
return (actionMapping.findForward("success"));
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -