⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 roleaction.java

📁 这是一个轻便的j2ee的web应用框架,是一个在多个项目中运用的实际框架,采用struts,hebinate,xml等技术,有丰富的tag,role,navigation,session,dictio
💻 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 + -