真的好反感那些諷刺別人說老師講的不好的人,你們老是說別人菜不懂還怪老師難道你不就是從一個什么都不懂然后到處去求知問解的,你既然不能解決人家的問題就不要去諷刺人家菜不菜的問題,反正就我個人感覺老師這節(jié)課確實講的有點模糊,但我還是尊重老師的勞動成果!
2018-04-14
Struts2使用版本若是2.3.24,則過濾器為:org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
若報:There is no Action mapped for namespace [/] and action name [Login] associated with context path [/eprint]?錯誤
做如下檢查:確保struts.xml文件名大小寫正確:struts.xml(我的錯是寫成了strust);確保struts.xml文件在src目錄下
若報:There is no Action mapped for namespace [/] and action name [Login] associated with context path [/eprint]?錯誤
做如下檢查:確保struts.xml文件名大小寫正確:struts.xml(我的錯是寫成了strust);確保struts.xml文件在src目錄下
2018-04-13
今天看完做了一遍 發(fā)現(xiàn)錯誤了 找了一遍發(fā)現(xiàn)少導(dǎo)入了一個包
2018-04-10
版本:struts-2.5.16
1.代碼:<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.5//EN"
"http://struts.apache.org/dtds/struts-2.5.dtd">
2.路徑調(diào)整了:web.xml包路徑
<filter-class>org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter</filter-class>
3.多導(dǎo)個log4j個jar包
1.代碼:<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.5//EN"
"http://struts.apache.org/dtds/struts-2.5.dtd">
2.路徑調(diào)整了:web.xml包路徑
<filter-class>org.apache.struts2.dispatcher.filter.StrutsPrepareAndExecuteFilter</filter-class>
3.多導(dǎo)個log4j個jar包
2018-04-10
https://struts.apache.org/core-developers/。官方文檔更詳細(xì),看不懂英文可以點瀏覽器自帶的翻譯成中文,翻譯的還是可以的
2018-04-06
struts-2.3.34\docs\docs\strutsproperties.html官網(wǎng)下載的包有更加詳細(xì)的說明
2018-04-05
aaa.action //這種形式會轉(zhuǎn)到error界面
aaa_aa.action//會報錯 500
aaa_aa.action//會報錯 500
2018-03-19
報404錯誤的請注意下struts.xml文件中LoginAction中需要添加一個name值為input的result
struts.xml頁部分代碼如下:
<action name="LoginAction" method="login" class="action.LoginAction">
<result>/success.jsp</result>
<result name="input">/login.jsp</result>
</action>
struts.xml頁部分代碼如下:
<action name="LoginAction" method="login" class="action.LoginAction">
<result>/success.jsp</result>
<result name="input">/login.jsp</result>
</action>
2018-03-10