先是web工程部署之后訪問不了,連歡迎頁面都是404.
后來改了server的配置文件web.xml,把init-param中的debug改為1,解決了這個問題。
后來到struts的action訪問不了。
增加commons-lang3這個包后解決了這個問題。
后來改了server的配置文件web.xml,把init-param中的debug改為1,解決了這個問題。
后來到struts的action訪問不了。
增加commons-lang3這個包后解決了這個問題。
2017-11-08
十月 26, 2017 3:34:57 下午 com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn
警告: Could not find action or result
There is no Action mapped for namespace / and action name login. - [unknown location]
一直報這個錯
警告: Could not find action or result
There is no Action mapped for namespace / and action name login. - [unknown location]
一直報這個錯
2017-10-26
struts.properties里的具體設(shè)置可以參考之前下載好的struts下面的docs/docs/strutsproperties.html里面都有。不過全英文的,看著有點蛋疼
2017-10-23
我用得struts2.5.13。配置filter是<filter-class>
org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter
</filter-class>然后jar包記得導(dǎo)入一個log4j-api.jar,我之前沒導(dǎo)入這個包,一直啟動不了tomcat,加了之后就好了
org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter
</filter-class>然后jar包記得導(dǎo)入一個log4j-api.jar,我之前沒導(dǎo)入這個包,一直啟動不了tomcat,加了之后就好了
2017-10-23