最贊回答 / 飛魚乀
終于搞明白了 原來是 我的myecipse自動生成的Struts2.1驅動包和Hibernate驅動的包沖突了。那個包是antlr-2.7.7.jar 把Struts2中的這個包刪除就好了
2017-11-01
最贊回答 / weibo_阿大木木_0
<filter-mapping>??????<filter-name>struts2</filter-name>??????<url-pattern>*.jsp</url-pattern>??</filter-mapping>解決了,添加一個過濾設置就好了
2017-10-28
十月 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里的具體設置可以參考之前下載好的struts下面的docs/docs/strutsproperties.html里面都有。不過全英文的,看著有點蛋疼
2017-10-23
我用得struts2.5.13。配置filter是<filter-class>
org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter
</filter-class>然后jar包記得導入一個log4j-api.jar,我之前沒導入這個包,一直啟動不了tomcat,加了之后就好了
org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter
</filter-class>然后jar包記得導入一個log4j-api.jar,我之前沒導入這個包,一直啟動不了tomcat,加了之后就好了
2017-10-23
遇到java.lang.ClassNotFoundException: 的朋友 可以看看這篇博客
http://blog.csdn.net/wenzhilanyu2012/article/details/50777811
http://blog.csdn.net/wenzhilanyu2012/article/details/50777811
2017-10-10