其實從單次登陸來看確實這樣寫很多余 但是如果是多頁面訪問的話 就可以通過session保存訪問信息,能夠實現直接訪問而不用每次打開頁面都登陸
2017-04-11
如果jsp有傳遞參數的話還需要加上一句<interceptor-ref name="defaultStack"></interceptor-ref> 否則參數會丟失
2017-04-06
在name=login的action中調用name=auth的action
<action name="login" class="action.LoginAction" method="login">
<!-- chain和redirectAction都行,chain能保留前一個action中屬性,redirectAction無法保留 --!>
<result type="chain">auth</result>
<result name="error">/login.jsp</result>
</action>
<action name="login" class="action.LoginAction" method="login">
<!-- chain和redirectAction都行,chain能保留前一個action中屬性,redirectAction無法保留 --!>
<result type="chain">auth</result>
<result name="error">/login.jsp</result>
</action>
2017-04-03
本來是打算全部視頻都在慕課看的。。但是發現其實不全是好老師,有些講的確實不怎么樣,就得去找另外的看。。心累。。。幸好這個老師不錯。。節約很多時間
2017-03-29