Struts2攔截器淺析第二個案例struts-authInterceptor的相關(guān)問題
我用的Eclipse,java8+struts2.3,代碼相同,后臺沒反應(yīng),前臺報
Struts Problem Report
Struts has detected an unhandled exception:
Messages: ? ?
There is no Action mapped for namespace [/] and action name [login] associated with context path [/struts-authInterceptor].
? ?
Stacktraces
There is no Action mapped for namespace [/] and action name [login] associated with context path [/struts-authInterceptor]. - [unknown location] ? ?
? ?com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:185)
? ?org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:63)
。。。。。。
2016-02-03
應(yīng)該是struts.xml文件出錯了,下次出問題了,把配置文件也帖出來。
你這大概是struts.xml中的action名字弄錯了,檢查檢查看看