前端c标签foreach传值给后台
前端c标签foreach传值给后台
<div style="margin-bottom: 10px">
<c:forEach items="${goodsList}" var="item" varStatus="status">
<input id="goodsId" name="goodsId" value="${item.goodsId}"
data-options="required:true" style="width: 100px" hidden="true" />
<input id="sectionOneValue" name="sectionOneValue"
value="${item.sectionOneValue}" data-options="required:true"
style="width: 100px; border: none;" />
<input id="goodsPrice" name="goodsPrice"
value="${item.goodsPrice}" data-options="required:true"
style="width: 100px" />
<br />
</c:forEach>
后台这样接收
String[] goodsId = request.getParameterValues("goodsId");
String[] goodsPrice = request.getParameterValues("goodsPrice");
最新文章
- ThinkPHP+Smarty模板中截取包含中英文混合的字符串乱码的解决方案
- ghost xp 安装IIS,并配置WCF
- 学习笔记——Maven实战(九)打包的技巧
- Bootstrap 3兼容IE8浏览器(转)
- Qt 获取usb设备信息 hacking
- 使用CXF与Spring集成实现RESTFul WebService
- 手写归并排序(MergeSort)
- HDOJ 2014 青年歌手大奖赛_评委会打分
- C++中使用stringstream简化类型转换
- MNIST机器学习
- DNS生效时间
- window.load 和$(document).ready() 区别
- some knowledge of language
- sqlserver2012 offset分页
- EasyUI的onLoadSuccess方法
- CSS常用样式属性
- ostream_iterator的可能实现
- [leetcode] 14. Climbing Stairs
- Border属性的各种变化
- hdu 4859 最小割
热门文章
- #Python学习笔记:1-3章 (基于《python编程,从入门到实践)
- mysql索引及sql执行顺序
- 解决ubuntu系统“XXX is not in the sudoers file”错误
- [No0000CA]什么是“普瑞马法则”?以及 如何利用“普瑞马法则”,三步克服惰性
- LeetCode 893 Groups of Special-Equivalent Strings 解题报告
- 应用docker化
- 注解之@PathVariable
- opencv图片拼接报错cv::Stitcher::ERR_NEED_MORE_IMGS (1)
- 从零开始编写操作系统——bochs
- CentOS 7.2编译安装nginx1.10.3+MySQL5.5.38+PHP5.5.38