📄 rolemanagenewtag.java
字号:
/**
*
*/
package com.seavision.PermissionManage.tag;
import java.util.ArrayList;
import java.util.List;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.TagSupport;
import com.seavision.PermissionManage.common.BaseTag;
import com.seavision.PermissionManage.components.FunctionManage;
import com.seavision.PermissionManage.help.DaoFectory;
import com.seavision.PermissionManage.vo.FunctionVO;
/**
* @author qiao rong
* @date 2007-05-10
* @param null
* @function 角色新增tag 循环打印角色列表
*
*/
public class RoleManageNewTag extends BaseTag {
public int doStartTag() throws JspException {
this.initializeTag("RoleManageNewTag"); // 初始化类
try {
this.appendMessage("<root>");
FunctionVO functionVO = null;
List list_func = null; // 功能点列表
List list = new ArrayList();
// 组件
FunctionManage functionManage = DaoFectory.getFunctionManage();
// 循环打印功能列表
list_func = functionManage.getFunctionNameList();
list = functionManage.getFunctionName();
this.appendMessage("<functionList>");
for (int i = 0; i < list_func.size(); i++) {
functionVO = (FunctionVO) list_func.get(i);
this.appendMessage("<function>");
this.appendMessage("<functionId>" + functionVO.getFunctionName() + "</functionId>");// 功能点编号
this.appendMessage("<functionName>" + functionVO.getFunctionName() + "</functionName>"); // 功能点名称
this.appendMessage("</function>");
}
this.appendMessage("</functionList>");
this.appendMessage("</root>");
this.outputMessage();
} catch (Exception ex) {
this.outputStandardErrorMessage();
ex.printStackTrace();
print("userlistTag出现异常");
} // end catch
return TagSupport.EVAL_BODY_INCLUDE; // 继续计算BODY体
} // end doStartTag method
public int doEndTag() throws JspException {
return EVAL_PAGE;
}// doEndTag method
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -