<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