?? web應(yīng)用配置.txt
字號:
1.修改kspublib.jar文件中DBConfig.xml,將數(shù)據(jù)庫配置為自己的數(shù)據(jù)庫。
2.將optiontree.jar,kspublib.jar(需要xml解析器xerces.jar)拷貝到應(yīng)用的web-inf/lib目錄下。
3.調(diào)用:
在使用的時候列舉兩種方式:
1>jsp中調(diào)用:
將OptionTreeTag.tld拷貝到web-inf目錄中。
在web.xml中配置一個taglib,添加如下:
<taglib>
<taglib-uri>/OptionTreeTag</taglib-uri>
<taglib-location>/WEB-INF/OptionTreeTag.tld</taglib-location>
</taglib>
頁面調(diào)用:首先加入這個標(biāo)記:
<%@ taglib uri="/OptionTreeTag" prefix="OPT"%>
<select><OPT:OptionTree selectedId="11"/></select>,其中selectedId不是必須的,表示在下拉框中選中的項。
2>struts中調(diào)用(不需要引用上述標(biāo)記庫):
在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>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -