第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定

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)

。。。。。。


正在回答

1 回答

應(yīng)該是struts.xml文件出錯了,下次出問題了,把配置文件也帖出來。

你這大概是struts.xml中的action名字弄錯了,檢查檢查看看

0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

bochyjinan12 提問者

<action name="login" class="com.imooc.action.LoginAction" method="login"> <result name="success">/WEB-INF/page/manager.jsp</result> <result name="error">/login.jsp</result> </action> 問題已經(jīng)解決了。我只改了一個地方。name=“success”,就是唯一的那個“success”。 作者案例里面是沒有的。 我當(dāng)時百度也百度不到,我就按能省略的地方都補(bǔ)全的思路去改的,結(jié)果好了。 挺莫名其妙的。
2016-02-03 回復(fù) 有任何疑惑可以回復(fù)我~
#2

bochyjinan12 提問者

雖然已經(jīng)解決,不過還是采納你的。
2016-02-03 回復(fù) 有任何疑惑可以回復(fù)我~
#3

我比風(fēng)更自由 回復(fù) bochyjinan12 提問者

我也不知道你這問題到底是怎么回事,但你這種問題我是經(jīng)常遇到的,就是完全照著書來或者照著視頻來敲代碼仍然出錯的問題,好多問題都是jar版本的問題
2016-02-03 回復(fù) 有任何疑惑可以回復(fù)我~

舉報

0/150
提交
取消

Struts2攔截器淺析第二個案例struts-authInterceptor的相關(guān)問題

我要回答 關(guān)注問題
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號