📄 mainaction.java
字号:
package com.bjsxt.oa.web.actions;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionForward;
import org.apache.struts.action.ActionMapping;
import com.bjsxt.oa.managers.AclManager;
public class MainAction extends BaseAction {
private AclManager aclManager;
public ActionForward outlook(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
//根据当前登录用户,获取授权模块列表
request.setAttribute("modules",
aclManager.searchModules(currentUser(request).getId())
);
return mapping.findForward("outlook");
}
public ActionForward main(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception {
return mapping.findForward("main");
}
public void setAclManager(AclManager aclManager) {
this.aclManager = aclManager;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -