struts 中页面提交的时候报 缺少result input
来源:互联网 发布:淘宝客赚钱教程 编辑:程序博客网 时间:2024/06/06 02:38
可能很多人都会遇到这样的问题
个人总结1:提交的时候有非空验证
2:也面中存在两个名字相同的 name
以下是本人遇到的问题
<form id="form1" name="form1" method="post" action="">
<table width="90%" border="0" cellspacing="0" cellpadding="0" class="addform-item">
<thead>
<tr>
<td>项目</td>
<td>金额</td>
<td>费用说明</td>
<td>操作
<%--报销单的总价格 --%>
<input type="hidden" id="totals" value="<s:property value="claimVoucherInfo.claimTotalaccount"/>" name="claimVoucherInfo.claimTotalaccount" />
<%--报销单编号 --%>
<input type="hidden" value="<s:property value="claimVoucherInfo.claimId"/>" name="claimVoucherInfo.claimId" />
</td>
</tr>
</thead>
<s:iterator var="claimVoucherDetailInfo" value="claimVoucherDetailInfoList" >
<tr>
<td>
<s:property value="#claimVoucherDetailInfo.dictionaryInfo.dictionaryItem"/>
//////////////////////////////////////此编号保存在隐藏域中 当数据库中没有数据的时候循环不会执行 所有就不会有此标签
当新增了数据的时候就会存在此标签 action中定义的claimVoucherDetailInfo对象接收
当再次提交的时候就会报 。。。 。。。。 。。。。 result input
意思就是action中缺少result name为input 的结果
把隐藏域中的name改了就可以了
<input type="hidden" value="<s:property value="#claimVoucherDetailInfo.dictionaryInfo.dictionaryId"/>"name="claimVoucherDetailInfo.dictionaryInfo.dictionaryId"/>
</td>
<td>¥<s:property value="#claimVoucherDetailInfo.detailAccount"/></td>
<td><s:property value="#claimVoucherDetailInfo.detailDesc"/></td>
<td>
<img src="images/edit.gif" width="16" height="16" alt="修改" />
<img src="images/delete.gif" width="16" height="16" alt="删除"/>
</td>
</tr>
</s:iterator>
<tr>
<td>
<select name="claimVoucherDetailInfo.dictionaryInfo.dictionaryId"id="select" class="input_01">
<s:iterator var="dictionaryInfo" value="dictionaryInfoList">
<option value="<s:property value="#dictionaryInfo.dictionaryId"/>">
<s:property value="#dictionaryInfo.dictionaryItem" />
</option>
</s:iterator>
</select>
</td>
<td><input type="text" name="claimVoucherDetailInfo.detailAccount" id="textfield2" class="input_01" value="" /></td>
<td><input type="text" name="claimVoucherDetailInfo.detailDesc" id="textfield" class="input_01" value="" /></td>
<td><img src="images/save.gif" width="16" height="16" alt="保存" onclick="imgSave()"/></td>
</tr>
<!--报销单事由-->
<tr><td colspan="4" class="event">
<label>事 由:</label><textarea name="claimVoucherInfo.claimEvent" id="textarea" cols="45" rows="5"><s:property value="claimVoucherInfo.claimEvent"/></textarea>
</td></tr>
<!--表单提交行-->
<tr>
<td colspan="4" class="submit">
<input type="button" name="button" id="button" value="保 存" class="submit_01" />
<input type="button" name="button" id="button" value="提 交" class="submit_01" />
<input type="button" name="button" id="button" value="返 回" class="submit_01" onclick="buttonBack()"/>
</td>
</tr>
</table>
</form>
- struts 中页面提交的时候报 缺少result input
- Struts中配置的result
- Struts报错误No result defined for action and result input
- 使用Struts开发报错“No result defined for action and result input ...”
- 关于Struts 中页面刷新,重复提交的问题
- [Struts2]struts.xml中result的path
- 关于struts中result的一点记录
- 解析Struts中Result的配置
- struts.xml中result的学习
- 页面跳转,特别是struts.xml中result带参数实现
- svn提交的时候报版本错误
- 使用struts2的标签报错No result defined for action and result input
- Struts中struts.xml配置文件的主要元素(result)
- 一个页面有多个提交按钮的时候
- struts.xml配置文件中result的语法:<result name="" type="">xxxxx</result>
- struts.xml配置文件中result的语法:<result name="" type="">xxxxx</result>
- struts.xml配置文件中result的语法:<result name="" type="">xxxxx</result>
- 焦点在input框的时候按enter提交
- 使用style样式隐藏显示下级菜单的方法
- hibernate插入的时候怎样返回插入对象的编号
- Oracle中怎样修改登录密码
- 怎样使用javascript实现返回上一页的才做
- struts重定向传值的方法
- struts 中页面提交的时候报 缺少result input
- oracle 启动无监听问题
- 喝茶与吃药
- Exception starting filter struts2
- Java中使用JDBC连接oracle数据库
- java中显示ORACLE中的DATE类型的时分秒的问题
- 整合ssh框架的web.xml中的配置节
- 整合ssh的时候出现空指针java.lang.NullPointerException
- SSH整合DWR时报HTTP Status 404 - There is no Action mapped for namespace / and action name dwr.