锘??xml version="1.0" encoding="utf-8" standalone="yes"?>国产欧美大片,国产精品成人免费视频,国产美女av一区二区三区http://www.aygfsteel.com/juliashine/category/18404.htmlzh-cnTue, 27 Feb 2007 12:04:47 GMTTue, 27 Feb 2007 12:04:47 GMT60struts2鐨剆truts.properties閰嶇疆鏂囦歡璇﹁В錛堣漿錛?/title><link>http://www.aygfsteel.com/juliashine/archive/2006/12/21/89290.html</link><dc:creator>Juliashine</dc:creator><author>Juliashine</author><pubDate>Thu, 21 Dec 2006 07:11:00 GMT</pubDate><guid>http://www.aygfsteel.com/juliashine/archive/2006/12/21/89290.html</guid><wfw:comment>http://www.aygfsteel.com/juliashine/comments/89290.html</wfw:comment><comments>http://www.aygfsteel.com/juliashine/archive/2006/12/21/89290.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.aygfsteel.com/juliashine/comments/commentRss/89290.html</wfw:commentRss><trackback:ping>http://www.aygfsteel.com/juliashine/services/trackbacks/89290.html</trackback:ping><description><![CDATA[聽聽聽聽聽聽聽聽 The聽URL聽extension聽to聽use聽to聽determine聽if聽the聽request聽is聽meant聽for聽a聽Struts聽action聽<br />聽聽聽聽聽聽聽聽聽聽聽鐢║RL鎵╁睍鍚嶆潵紜畾鏄惁榪欎釜璇鋒眰鏄鐢ㄤ綔Struts聽action錛屽叾瀹炰篃灝辨槸璁劇疆聽action鐨勫悗緙錛屼緥濡俵ogin.do鐨?do'瀛椼?br /><br />struts.configuration<br />聽聽聽聽聽聽聽聽聽聽The聽org.apache.struts2.config.Configuration聽implementation聽class<br />聽聽聽聽聽聽聽聽聽聽聽聽org.apache.struts2.config.Configuration鎺ュ彛鍚?br /><br />struts.configuration.files<br />聽聽聽聽聽聽聽聽聽聽A聽list聽of聽configuration聽files聽automatically聽loaded聽by聽Struts聽<br />聽聽聽聽聽聽聽聽聽聽聽struts鑷姩鍔犺澆鐨勪竴涓厤緗枃浠跺垪琛?br /><br />struts.configuration.xml.reload<br />聽聽聽聽聽聽聽聽聽聽Whether聽to聽reload聽the聽XML聽configuration聽or聽not<br />聽聽聽聽聽聽聽聽聽聽聽鏄惁鍔犺澆xml閰嶇疆(true,false)<br /><br />struts.continuations.package<br />聽聽聽聽聽聽聽聽聽聽聽The聽package聽containing聽actions聽that聽use聽Rife聽continuations<br />聽聽聽聽聽聽聽聽聽聽聽鍚湁actions鐨勫畬鏁磋繛緇殑package鍚嶇О<br /><br />struts.custom.i18n.resources<br />聽聽聽聽聽聽聽聽聽聽Location聽of聽additional聽localization聽properties聽files聽to聽load聽<br />聽聽聽聽聽聽聽聽聽聽聽鍔犺澆闄勫姞鐨勫浗闄呭寲灞炴ф枃浠訛紙涓嶅寘鍚?properties鍚庣紑錛?br /><br />struts.custom.properties<br />聽聽聽聽聽聽聽聽聽聽Location聽of聽additional聽configuration聽properties聽files聽to聽load<br />聽聽聽聽聽聽聽聽聽聽聽鍔犺澆闄勫姞鐨勯厤緗枃浠剁殑浣嶇疆<br /><br /><br />struts.devMode<br />聽聽聽聽聽聽聽聽聽聽Whether聽Struts聽is聽in聽development聽mode聽or聽not<br />聽聽聽聽聽聽聽聽聽聽聽鏄惁涓簊truts寮鍙戞ā寮?br /><br />struts.dispatcher.parametersWorkaround<br />聽聽聽聽聽聽聽聽聽聽Whether聽to聽use聽a聽Servlet聽request聽parameter聽workaround聽necessary聽for聽some聽versions聽of聽WebLogic<br />聽聽聽聽聽聽聽聽聽聽聽聽錛堟煇浜涚増鏈殑weblogic涓撶敤錛夋槸鍚︿嬌鐢ㄤ竴涓猻ervlet璇鋒眰鍙傛暟宸ヤ綔鍖猴紙PARAMETERSWORKAROUND錛?br /><br />struts.enable.DynamicMethodInvocation<br />聽聽聽聽聽聽聽聽聽聽Allows聽one聽to聽disable聽dynamic聽method聽invocation聽from聽the聽URL<br />聽聽聽聽聽聽聽聽聽聽聽聽鍏佽鍔ㄦ佹柟娉曡皟鐢?br /><br />struts.freemarker.manager.classname<br />聽聽聽聽聽聽聽聽聽聽The聽org.apache.struts2.views.freemarker.FreemarkerManager聽implementation聽class聽<br />聽聽聽聽聽聽聽聽聽聽聽org.apache.struts2.views.freemarker.FreemarkerManager鎺ュ彛鍚?br /><br />struts.i18n.encoding<br />聽聽聽聽聽聽聽聽聽聽The聽encoding聽to聽use聽for聽localization聽messages<br />聽聽聽聽聽聽聽聽聽聽聽鍥介檯鍖栦俊鎭唴鐮?br /><br />struts.i18n.reload<br />聽聽聽聽聽聽聽聽聽聽Whether聽the聽localization聽messages聽should聽automatically聽be聽reloaded<br />聽聽聽聽聽聽聽聽聽聽聽鏄惁鍥介檯鍖栦俊鎭嚜鍔ㄥ姞杞鉸?br /><br />struts.locale<br />聽聽聽聽聽聽聽聽聽聽The聽default聽locale聽for聽the聽Struts聽application<br />聽聽聽聽聽聽聽聽聽聽聽榛樿鐨勫浗闄呭寲鍦板尯淇℃伅<br /><br />struts.mapper.class<br />聽聽聽聽聽聽聽聽聽聽The聽org.apache.struts2.dispatcher.mapper.ActionMapper聽implementation聽class<br />聽聽聽聽聽聽聽聽聽聽聽聽org.apache.struts2.dispatcher.mapper.ActionMapper鎺ュ彛<br /><br />struts.multipart.maxSize<br />聽聽聽聽聽聽聽聽聽聽The聽maximize聽size聽of聽a聽multipart聽request聽(file聽upload)<br />聽聽聽聽聽聽聽聽聽聽聽multipart璇鋒眰淇℃伅鐨勬渶澶у昂瀵革紙鏂囦歡涓婁紶鐢級聽<br /><br />struts.multipart.parser<br />聽聽聽聽聽聽聽聽聽聽The聽org.apache.struts2.dispatcher.multipart.<br />聽聽聽聽聽聽聽聽聽聽MultiPartRequest聽parser聽implementation聽for聽a聽multipart聽request聽(file聽upload)聽<br />聽聽聽聽聽聽聽聽聽聽涓撲負multipart璇鋒眰淇℃伅浣跨敤鐨刼rg.apache.struts2.dispatcher.multipart.MultiPartRequest瑙f瀽鍣ㄦ帴鍙o紙鏂囦歡涓婁紶鐢級<br /><br /><br />struts.multipart.saveDir<br />聽聽聽聽聽聽聽聽聽聽The聽directory聽to聽use聽for聽storing聽uploaded聽files聽<br />聽聽聽聽聽聽聽聽聽聽聽璁劇疆瀛樺偍涓婁紶鏂囦歡鐨勭洰褰曞す<br /><br />struts.objectFactory<br />聽聽聽聽聽聽聽聽聽聽The聽com.opensymphony.xwork2.ObjectFactory聽implementation聽class<br />聽聽聽聽聽聽聽聽聽聽聽com.opensymphony.xwork2.ObjectFactory鎺ュ彛錛坰pring錛?br /><br />struts.objectFactory.spring.autoWire<br />聽聽聽聽聽聽聽聽聽聽Whether聽Spring聽should聽autoWire聽or聽not<br />聽聽聽聽聽聽聽聽聽聽聽鏄惁鑷姩緇戝畾Spring<br /><br />struts.objectFactory.spring.useClassCache<br />聽聽聽聽聽聽聽聽聽聽Whether聽Spring聽should聽use聽its聽class聽cache聽or聽not<br />聽聽聽聽聽聽聽聽聽聽聽鏄惁spring搴旇浣跨敤鑷韓鐨刢ache聽<br /><br />struts.objectTypeDeterminer<br />聽聽聽聽聽聽聽聽聽聽The聽com.opensymphony.xwork2.util.ObjectTypeDeterminer聽implementation聽class<br />聽聽聽聽聽聽聽聽聽聽聽聽com.opensymphony.xwork2.util.ObjectTypeDeterminer鎺ュ彛<br /><br />struts.serve.static.browserCache<br />聽聽If聽static聽content聽served聽by聽the聽Struts聽filter聽should聽set聽browser聽caching聽header聽properties聽or聽not聽<br />聽聽聽聽聽聽聽聽聽聽聽鏄惁struts榪囨護鍣ㄤ腑鎻愪緵鐨勯潤鎬佸唴瀹瑰簲璇ヨ嫻忚鍣ㄧ紦瀛樺湪澶撮儴灞炴т腑<br /><br />struts.serve.static<br />聽聽聽聽聽聽聽聽聽聽Whether聽the聽Struts聽filter聽should聽serve聽static聽content聽or聽not聽<br />聽聽聽聽聽聽聽聽聽聽聽鏄惁struts榪囨護鍣ㄥ簲璇ユ彁渚涢潤鎬佸唴瀹?br /><br />struts.tag.altSyntax<br />聽聽聽聽聽聽聽聽聽聽Whether聽to聽use聽the聽alterative聽syntax聽for聽the聽tags聽or聽not聽<br />聽聽聽聽聽聽聽聽聽聽聽鏄惁鍙互鐢ㄦ浛浠g殑璇硶鏇夸唬tags<br /><br />struts.ui.templateDir<br />聽聽聽聽聽聽聽聽聽聽The聽directory聽containing聽UI聽templates<br />聽聽聽聽聽聽聽聽聽聽聽UI聽templates鐨勭洰褰曞す聽<br /><br />struts.ui.theme<br />聽聽聽聽聽聽聽聽聽聽The聽default聽UI聽template聽theme<br />聽聽聽聽聽聽聽聽聽聽聽榛樿鐨刄I聽template涓婚<br /><br />struts.url.http.port<br />聽聽聽聽聽聽聽聽聽聽The聽HTTP聽port聽used聽by聽Struts聽URLs<br />聽聽聽聽聽聽聽聽聽聽聽璁劇疆http绔彛<br /><br />struts.url.https.port<br />聽聽聽聽聽聽聽聽聽聽The聽HTTPS聽port聽used聽by聽Struts聽URLs聽<br />聽聽聽聽聽聽聽聽聽聽聽璁劇疆https绔彛<br /><br />struts.url.includeParams<br />聽聽聽聽聽聽聽聽聽聽The聽default聽includeParams聽method聽to聽generate聽Struts聽URLs聽<br />聽聽聽聽聽聽聽聽聽聽鍦╱rl涓駭鐢熉犻粯璁ょ殑includeParams<br /><br /><br />struts.velocity.configfile<br />聽聽聽聽聽聽聽聽聽聽The聽Velocity聽configuration聽file聽path<br />聽聽聽聽聽聽聽聽聽聽聽velocity閰嶇疆鏂囦歡璺緞<br /><br />struts.velocity.contexts<br />聽聽聽聽聽聽聽聽聽聽List聽of聽Velocity聽context聽names<br />聽聽聽聽聽聽聽聽聽聽聽velocity鐨刢ontext鍒楄〃<br /><br /><br />struts.velocity.manager.classname<br />聽聽聽聽聽聽聽聽聽聽org.apache.struts2.views.velocity.VelocityManager聽implementation聽class<br />聽聽聽聽聽聽聽聽聽聽聽org.apache.struts2.views.velocity.VelocityManager鎺ュ彛鍚?br /><br />struts.velocity.toolboxlocation<br />聽聽聽聽聽聽聽聽聽聽The聽location聽of聽the聽Velocity聽toolbox<br />聽聽聽聽聽聽聽聽聽聽聽velocity宸ュ叿鐩掔殑浣嶇疆聽<br />struts.xslt.nocache<br />聽聽聽聽聽聽聽聽聽聽Whether聽or聽not聽XSLT聽templates聽should聽not聽be聽cached<br />聽聽聽聽聽聽聽聽聽聽聽鏄惁XSLT妯$増搴旇琚紦瀛?br /><img src ="http://www.aygfsteel.com/juliashine/aggbug/89290.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.aygfsteel.com/juliashine/" target="_blank">Juliashine</a> 2006-12-21 15:11 <a href="http://www.aygfsteel.com/juliashine/archive/2006/12/21/89290.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>Struts 2.01鏁村悎Springhttp://www.aygfsteel.com/juliashine/archive/2006/12/15/87994.htmlJuliashineJuliashineFri, 15 Dec 2006 09:04:00 GMThttp://www.aygfsteel.com/juliashine/archive/2006/12/15/87994.htmlhttp://www.aygfsteel.com/juliashine/comments/87994.htmlhttp://www.aygfsteel.com/juliashine/archive/2006/12/15/87994.html#Feedback0http://www.aygfsteel.com/juliashine/comments/commentRss/87994.htmlhttp://www.aygfsteel.com/juliashine/services/trackbacks/87994.htmlStruts2 鍙戝竷宸茬粡寰堥暱鏃墮棿浜嗭紝涓鐩存病鏈夐【寰椾笂瀛︿範錛屾湰鍛ㄥ伐浣滄瘮杈冭交鏉撅紝鑺辯偣鏃墮棿鐓х潃渚嬪瓙鍋氫簡涓涓嬶紝浣嗘槸鍦ㄤ笌Spring 闆嗘垚鐨勬椂鍊欏嚭鐜伴棶棰橈紝action鎵句笉鍒癝pring涓畾涔夌殑bean錛屾姌鑵句簡涓や釜澶氬皬鏃舵墠鏈緇堟悶瀹氾紝鍐沖畾鎶婂績寰楄褰曚笅鏉ャ?br />
Struts2 闆嗘垚 Spring 鐨?Web.xml 鏈綆閰嶇疆

<? xml聽version="1.0"聽encoding="UTF-8" ?>
< web-app聽 id ="WebApp_9" 聽version ="2.4" 聽xmlns ="http://java.sun.com/xml/ns/j2ee"
聽聽聽聽xmlns:xsi
="http://www.w3.org/2001/XMLSchema-instance"

聽聽聽聽xsi:schemaLocation
="http://java.sun.com/xml/ns/j2ee聽http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" >


聽聽聽聽
< display-name > Struts聽2.0 </ display-name >
聽聽聽聽
聽聽聽聽
< filter >
聽聽聽聽聽聽聽聽
< filter-name > struts </ filter-name > 聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽
< filter-class > org.apache.struts2.dispatcher.FilterDispatcher </ filter-class >

聽聽聽聽
</ filter >
聽聽聽聽
< filter-mapping >
聽聽聽聽聽聽聽聽
< filter-name > struts </ filter-name >
聽聽聽聽聽聽聽聽
< url-pattern > /* </ url-pattern >
聽聽聽聽
</ filter-mapping >
聽聽聽聽
聽聽聽聽
< listener >
聽聽聽聽聽聽聽聽
< listener-class >
聽聽聽聽聽聽聽聽聽聽聽聽org.springframework.web.context.ContextLoaderListener
聽聽聽聽聽聽聽聽
</ listener-class >
聽聽聽聽
</ listener >
聽聽聽聽
聽聽聽聽
< welcome-file-list >
聽聽聽聽聽聽聽聽
< welcome-file > index.html </ welcome-file >
聽聽聽聽
</ welcome-file-list >
</ web-app >

姝ら厤緗傜敤浜庡皢Spring 鐨勯厤緗枃浠舵斁鍦ㄤ笌Web.xml鍚屼竴鐩綍錛屽嵆WEB-INF鐩綍涓嬶紝涓旈厤緗枃浠墮噰鐢ㄩ粯璁ゅ懡鍚峚pplicationContext.xml錛屽鏋淪pring閰嶇疆鏂囦歡娌℃湁鏀懼湪WEB-INF涓嬫垨鑰呴噰鐢ㄤ簡鑷畾涔夊悕縐幫紝鍒橶eb.xml搴旇濡備笅瀹氫箟錛?br />
<? xml聽version="1.0"聽encoding="UTF-8" ?>
< web-app聽 id ="WebApp_9" 聽version ="2.4" 聽xmlns ="http://java.sun.com/xml/ns/j2ee"
聽聽聽聽xmlns:xsi
="http://www.w3.org/2001/XMLSchema-instance"

聽聽聽聽xsi:schemaLocation
="http://java.sun.com/xml/ns/j2ee聽http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" >


聽聽聽聽
< context-param >
聽聽聽聽聽聽聽聽
< param-name > contextConfigLocation </ param-name >
聽聽聽聽聽聽聽聽
< param-value > classpath*:applicationContext*.xml </ param-value >
聽聽聽聽
</ context-param >
聽聽聽聽
< filter >
聽聽聽聽聽聽聽聽
< filter-name > struts </ filter-name > 聽聽聽聽聽聽聽聽
聽聽聽聽聽聽聽聽
< filter-class > org.apache.struts2.dispatcher.FilterDispatcher </ filter-class >

聽聽聽聽
</ filter >
聽聽聽聽
< filter-mapping >
聽聽聽聽聽聽聽聽
< filter-name > struts </ filter-name >
聽聽聽聽聽聽聽聽
< url-pattern > /* </ url-pattern >
聽聽聽聽
</ filter-mapping >
聽聽聽聽
聽聽聽聽
< listener >
聽聽聽聽聽聽聽聽
< listener-class >
聽聽聽聽聽聽聽聽聽聽聽聽org.springframework.web.context.ContextLoaderListener
聽聽聽聽聽聽聽聽
</ listener-class >
聽聽聽聽
</ listener >
聽聽聽聽
聽聽聽聽
< welcome-file-list >
聽聽聽聽聽聽聽聽
< welcome-file > index.html </ welcome-file >
聽聽聽聽
</ welcome-file-list >
</ web-app >

娉ㄦ剰榪欓噷姣斾笂涓厤緗鍑虹殑欏?br />
聽聽聽< context-param >
聽聽聽聽聽聽< param-name > contextConfigLocation </ param-name >
聽聽聽聽聽聽< param-value > classpath*:applicationContext*.xml </ param-value >
聽聽聽</ context-param >

琛ㄧずSpring閰嶇疆鏂囦歡鏀懼湪CLASSPATH鐩綍涓嬶紝鍗砏EB-INF/classes鐩綍涓嬶紝鍚嶇О涓篴pplicationContext*.xml錛屽叾涓?鈥濅負浠繪剰瀛楃

娉ㄦ剰錛岃繖榪樻病瀹岋紝CLASSPATH涓嬫湁涓猻truts.property鏂囦歡錛屽繀欏誨湪閲岄潰娣誨姞涓琛屽唴瀹癸細
錛堟垜灝辨槸緙轟簡榪欎釜瀵艱嚧action鎵句笉鍒癰ean錛?br />
struts.objectFactory聽=聽spring聽聽

緇橲pring閰嶇疆鏂囦歡鐨?lt;beans>鍏冪礌鍔犱笂濡備笅灞炴?br />

<beans聽default-autowire="autodetect">聽聽聽

聽聽鈥︹β犫︹?br />

OK,閰嶇疆瀹屾瘯錛佸彲浠ヤ嬌鐢ㄤ簡



]]>
主站蜘蛛池模板: 松阳县| 缙云县| 自贡市| 崇文区| 台江县| 虞城县| 宁南县| 丰台区| 广东省| 毕节市| 共和县| 衡水市| 葫芦岛市| 额尔古纳市| 大邑县| 江陵县| 会昌县| 江阴市| 葫芦岛市| 新绛县| 克山县| 莫力| 陵水| 会东县| 苏尼特左旗| 长治市| 吴堡县| 舟曲县| 阜宁县| 兴仁县| 滁州市| 天津市| 芦山县| 图木舒克市| 大化| 高碑店市| 耒阳市| 沙雅县| 墨玉县| 如皋市| 鄂托克前旗|