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
敬愛的老師,您好,我有些話想對您說:
1、我要感謝您,通過聽您的課,我學(xué)到了一些東西。
2、您的普通話聽著很費勁,感覺您的舌頭轉(zhuǎn)不過彎,您可以試著放慢語速。
3、您的英語發(fā)音也有很多錯誤,可以抽時間再補補您的英語音標(biāo)。
3、
1、我要感謝您,通過聽您的課,我學(xué)到了一些東西。
2、您的普通話聽著很費勁,感覺您的舌頭轉(zhuǎn)不過彎,您可以試著放慢語速。
3、您的英語發(fā)音也有很多錯誤,可以抽時間再補補您的英語音標(biāo)。
3、
2018-03-09
出現(xiàn)錯誤,Login.jsp無法響應(yīng)的,注意把web.xml中的<init-param>標(biāo)簽給注釋掉
2018-03-07
最贊回答 / 阿西莫夫
我是通過加入一個action來解決的,貌似是因為配置了struts攔截了所有請求,請求都必須通過配置action來訪問。注意一下:如果struts.xml中的<constant name="struts.action.extension" value=""></constant>如果value無值,那么login.jsp中的<form action="LoginAction" method="post">,LoginAction.action后面不能有.action&l...
2018-03-04
用戶是不會直接與控制層有任何交互的,這個交互過程只應(yīng)在視圖層中,視圖層將Input Data發(fā)送到控制層,控制層通過對Input data進行業(yè)務(wù)處理,從而于模型層獲取數(shù)據(jù),隨后將Output Data發(fā)送回顯示層,將結(jié)果響應(yīng)給用戶。
2018-03-04