前端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");

最新文章

  1. ThinkPHP+Smarty模板中截取包含中英文混合的字符串乱码的解决方案
  2. ghost xp 安装IIS,并配置WCF
  3. 学习笔记——Maven实战(九)打包的技巧
  4. Bootstrap 3兼容IE8浏览器(转)
  5. Qt 获取usb设备信息 hacking
  6. 使用CXF与Spring集成实现RESTFul WebService
  7. 手写归并排序(MergeSort)
  8. HDOJ 2014 青年歌手大奖赛_评委会打分
  9. C++中使用stringstream简化类型转换
  10. MNIST机器学习
  11. DNS生效时间
  12. window.load 和$(document).ready() 区别
  13. some knowledge of language
  14. sqlserver2012 offset分页
  15. EasyUI的onLoadSuccess方法
  16. CSS常用样式属性
  17. ostream_iterator的可能实现
  18. [leetcode] 14. Climbing Stairs
  19. Border属性的各种变化
  20. hdu 4859 最小割

热门文章

  1. #Python学习笔记:1-3章 (基于《python编程,从入门到实践)
  2. mysql索引及sql执行顺序
  3. 解决ubuntu系统“XXX is not in the sudoers file”错误
  4. [No0000CA]什么是“普瑞马法则”?以及 如何利用“普瑞马法则”,三步克服惰性
  5. LeetCode 893 Groups of Special-Equivalent Strings 解题报告
  6. 应用docker化
  7. 注解之@PathVariable
  8. opencv图片拼接报错cv::Stitcher::ERR_NEED_MORE_IMGS (1)
  9. 从零开始编写操作系统——bochs
  10. CentOS 7.2编译安装nginx1.10.3+MySQL5.5.38+PHP5.5.38