課程
/后端開發(fā)
/Java
/Struts2入門
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter配置文件時無法跳轉(zhuǎn)
2016-10-26
源自:Struts2入門 2-2
正在回答
可能原因:
1:拼寫有誤
2:有部分jar包沒有添加
剛剛case后用雙引號錯了,,應(yīng)該用單引號是盒子模型的,必須能改變其樣式,不然那么多行級元素,沒發(fā)改變樣式,多枯燥啊;
There is no Action mapped for namespace [/] and action name [] associated with context path [/HelloWorld].
報錯,求助。
最近忙,沒上慕課。解決了,但是又出了新問題。價格關(guān)注吧。到時相互提高
你可以貼下一的你的struts.xml配置文件
喔,解決了。但是 最后還是不能正確的yunxing
web.xml
org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter ?沒有.ng ? 正確的CTRL+左鍵會有鏈接
struts.xml
<package name="default" namespace="/" extends="struts-default" strict-method-invocation="false"> 加上最后面的代碼
將相關(guān)jar導(dǎo)入WEB-INFO下的lib里
不會吧,以下是我敲的代碼
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1">
? <display-name>Demo2</display-name>
? <filter>
? <filter-name>struts2</filter-name>
? <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
? </filter>
? <filter-mapping>
? <url-pattern>/*</url-pattern>
? </filter-mapping>
??
? <welcome-file-list> ? ?
? ? <welcome-file>index.jsp</welcome-file> ? ?
? </welcome-file-list>
</web-app>
WOshows 提問者
舉報
本教程帶你踏上Struts2學(xué)習(xí)之旅,對Struts2進(jìn)行更深入講解
4 回答網(wǎng)頁無法跳轉(zhuǎn)
1 回答無法跳轉(zhuǎn)到登錄界面
2 回答指定默認(rèn)action無法跳轉(zhuǎn)
2 回答無法找到該網(wǎng)頁
2 回答顯示 無法找到網(wǎng)頁
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2016-10-26
可能原因:
1:拼寫有誤
2:有部分jar包沒有添加
2022-03-27
剛剛case后用雙引號錯了,,應(yīng)該用單引號是盒子模型的,必須能改變其樣式,不然那么多行級元素,沒發(fā)改變樣式,多枯燥啊;
2017-02-15
There is no Action mapped for namespace [/] and action name [] associated with context path [/HelloWorld].
報錯,求助。
2016-11-21
最近忙,沒上慕課。解決了,但是又出了新問題。價格關(guān)注吧。到時相互提高
2016-11-15
你可以貼下一的你的struts.xml配置文件
2016-11-01
喔,解決了。但是 最后還是不能正確的yunxing
2016-10-30
web.xml
org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter ?沒有.ng ? 正確的CTRL+左鍵會有鏈接
struts.xml
<package name="default" namespace="/" extends="struts-default" strict-method-invocation="false"> 加上最后面的代碼
將相關(guān)jar導(dǎo)入WEB-INFO下的lib里
2016-10-26
不會吧,以下是我敲的代碼
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd" id="WebApp_ID" version="3.1">
? <display-name>Demo2</display-name>
? <filter>
? <filter-name>struts2</filter-name>
? <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter</filter-class>
? </filter>
? <filter-mapping>
? <filter-name>struts2</filter-name>
? <url-pattern>/*</url-pattern>
? </filter-mapping>
??
??
? <welcome-file-list> ? ?
? ? <welcome-file>index.jsp</welcome-file> ? ?
? </welcome-file-list>
</web-app>