📄 web应用配置.txt
字号:
1.修改kspublib.jar文件中DBConfig.xml,将数据库配置为自己的数据库。
2.将optiontree.jar,kspublib.jar(需要xml解析器xerces.jar)拷贝到应用的web-inf/lib目录下。
3.调用:
在使用的时候列举两种方式:
1>jsp中调用:
将OptionTreeTag.tld拷贝到web-inf目录中。
在web.xml中配置一个taglib,添加如下:
<taglib>
<taglib-uri>/OptionTreeTag</taglib-uri>
<taglib-location>/WEB-INF/OptionTreeTag.tld</taglib-location>
</taglib>
页面调用:首先加入这个标记:
<%@ taglib uri="/OptionTreeTag" prefix="OPT"%>
<select><OPT:OptionTree selectedId="11"/></select>,其中selectedId不是必须的,表示在下拉框中选中的项。
2>struts中调用(不需要引用上述标记库):
在actionform中定义成员变量private String optionTree = "";
在action中给optionTree赋值:
xxxform.setOptionTree(SpAuthorityBeanManage.getOptionTree(dbManage, selectedId);
最后在页面中显示:
<html:select property="rightParentRightId" disabled="false">
<bean:write name="spRightForm" property="optionTree" filter="false" />
</html:select>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -