📄 roleaction.java
字号:
/*
* Created on 2004-8-25
*
*/
package com.esimple.service.rbac.action;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.esimple.framework.util.*;
import com.esimple.framework.web.action.BaseForm;
import com.esimple.framework.web.action.IbatisSupportAction;
import com.esimple.service.rbac.po.*;
/**
* @author steven
*
*/
public class RoleAction extends IbatisSupportAction {
public String execute(
BaseForm form,
HttpServletRequest request,
HttpServletResponse response)
throws Exception {
String actionType = form.getValueAsString(ACTION_CODE,true);
if(actionType==null) actionType="";
Role role = new Role();
BaseFormUtil.copySimpleProperties(role,form,true);
request.setAttribute("result",
this.getSqlMapDao().query("rbac.role.getRoles",null) );
return this.FORWARD_SUCCESS;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -