您的位置:首页 > 其它

20160409

2016-04-09 01:15 495 查看
有些错误没有及时截图,写解答方法,今天就不贴了

- 用struts 前台数据传给后台 用form表单

Q:后台收不到数据

A:比如input中必须把name的值写成和java类中成员变量名一样

<form action="login.action" method="post">
name: <input type="text" name="name" >
<input type="submit" value="submit">
</form>


The requested resource is not available

Q:跑网页后经常遇到



A:我这里是没有写action

<action name="login" class="org.action.LoginAction"
method="excute">
<result name="success">/welcome.jsp</result>
<result name="error">/error.jsp</result>
</action>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: