新聞中心
一:Struts開發(fā)步驟:
1. web項(xiàng)目,引入struts - jar包
2. web.xml中,引入struts的核心功能
配置過濾器
3. 開發(fā)action
4. 配置action
src/struts.xml
二:詳細(xì)配置
1.引入8個jar文件
commons-fileupload-1.2.2.jar 【文件上傳相關(guān)包】
commons-io-2.0.1.jar
struts2-core-2.3.4.1.jar 【struts2核心功能包】
xwork-core-2.3.4.1.jar 【Xwork核心包】
ognl-3.0.5.jar 【Ognl表達(dá)式功能支持表】
commons-lang3-3.1.jar 【struts對java.lang包的擴(kuò)展】
freemarker-2.3.19.jar 【struts的標(biāo)簽?zāi)0鍘靔ar文件】
javassist-3.11.0.GA.jar 【struts對字節(jié)碼的處理相關(guān)jar】
2.web.xml詳細(xì)配置
<?xml version="1.0" encoding="UTF-8"?>struts2 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter struts2 /* index.jsp
當(dāng)前標(biāo)題:struts2開發(fā)流程及詳細(xì)配置-創(chuàng)新互聯(lián)
網(wǎng)站URL:http://fisionsoft.com.cn/article/ddodid.html