<action name="*_*" class="action.{1}Action" method="{2}">
<result name="login_success">/users/Users_login_success.jsp</result>
<result name="login_failure">/users/Users_login.jsp</result>
<allowed-methods>login</allowed-methods>
</action>
<result name="login_success">/users/Users_login_success.jsp</result>
<result name="login_failure">/users/Users_login.jsp</result>
<allowed-methods>login</allowed-methods>
</action>
struts2.5版本以上的,需要在struts.xml中添加<allowed-methods>
參考:http://blog.csdn.net/qq_16055765/article/details/52662814
參考:http://blog.csdn.net/qq_16055765/article/details/52662814
最新回答 / 慕粉2025484354
沒有報錯信息沒辦法針對分析,測試時測試函數生成的數據,界面插入是由前臺傳回來的數據,數據來源不一樣,能夠插入表明底層沒有問題,問題可能處在前臺數據接收和處理方面,你在action中打印出接收到的前臺數據看看
2016-12-20
最贊回答 / 慕粉3169703
右鍵點擊項目--->build path-->configure build path-->左側菜單欄就會看到Deployment Assembly-->右側點擊add按鈕--->選擇java build path entries--->next--->選擇項目--->finish.
2016-12-16
已采納回答 / 慕粉4271541
我說的是映射文件User.hbm.xml里的,你上面是配置文件hibernate.cfg.xml,你看看映射文件里是不是<class name="po.User" table="USERS">
2016-12-14
<td><s:a href="<%=path%>/Student/Student_delete?sno=<s:property value="#stu.sno"/>" onclick="javascript: return confirm('整的要刪除嗎?');">刪除</s:a></td>
報錯: /student/Student_all_success.jsp (line: 41, column: 22) attribute for %>" is not properly terminated
報錯: /student/Student_all_success.jsp (line: 41, column: 22) attribute for %>" is not properly terminated
2016-12-10