roleaction.java
来自「这是一个轻便的j2ee的web应用框架,是一个在多个项目中运用的实际框架,采用s」· Java 代码 · 共 36 行
JAVA
36 行
/*
* 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 + =
减小字号Ctrl + -
显示快捷键?