在Java web开发过程中,处理表单数据是很重要一部分,常见的是form post处理单条数据的,但也会遇到一次提交多条数据到服务器的,如下:

aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAsMAAAG7CAIAAACpdw8kAAAgAElEQVR4nO3dP0/rWMLA4fud/E1Gt1jxLUaabqV8hGmm2+r2b0W7HX0kTJqt4isihY5ikCxxgmTeIhdw/C/2IcRz4HmKFTlxHBPu5Pw4dthvJQBArG9zHwAAkDAlAQDEUxIAQDwlAQDEUxIAQDwlAQDEUxIAQLyxJZFlWZZlc208aYfRD0lU/TvNehx94HtGiObFBD6BE5RE3+w1MJ+1J7+BZzk6U0Yc8yfz+p0e/ZZH/iD6th8YbG8w8sf0xY35NzzyPyuAWZysJCY9fGACG7559Cm+2jtv58s1/P1mWfb7779P2nmWZf/3f/838HoOP+nne9mjTf0nOvrmf/+dZVn27/++3rcfOBgC+BC9JTH1La/smjA6p5D64PAc83rvpKnoq81kA69n3+v/+++/j/mx1l//15Loe+qBI/ncr/8kU1+K4R9o7eZhSfzvP//K6rcBPtBQSfz222/1m6eaRYbnsMZk1reTYV9wGsv6lw2GH9W3QXsnJ/w38GUNvGIR29du1kvi13JEIyNe6qJ+137s5dZ//51l2b/+87/3fIPAF3Sakmh83fj99eh0NXyIjZlsYLIc2KCx5SfTeIkmPeroS3T09W9s1r75iV/5qdovxfALNfqf9GtJ/AqGRka8nOt4sy+GekoICSDOqJLIuha3h2edvg36Nh7eZviJ6oP7KwA6D+Ozzmftb7ZnsikbI+0XZHhk+AWs7/y3334bPpIva/gf89GfSP/NXyXxn9eFh3pK7HvhLRJq/fD25eH6BMBox0uiby7pfFPrfB/smz+OTjZZz+n59rO/Dr5eAdAY79tP6iK+qca8Nfz6d/6I29s3vq6vZr3nUD+f4de585/u0Z9IWZa1RYd//ed/rbMb7RWJX1uWvwLiX//5334jIQFMd6QkBt7aOmeRvl117idinWPMYPtygfqvyH0H+Wkc/TZHzluN13D/qrb/t7F9qSQGDbz4nYPZCGVZv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AmYQQrq+vt9vt4+Pj3McCMM3j4+Pd3d319XX7HUxJwPmEENbrdZ7nS4CkrFaroig6fxFSEgBAPCUBAMRTEgBAPCUBAMRTEgBAPCUBAMRTEgBAPCUBAMT7tgYAiPX/Xy3fA8Kg++AAAAAASURBVDWvBh4AAAAASUVORK5CYII=" alt="" />

jsp页面一般是采用循环插入input输入框的,并且所有的 id 与 name 是前缀相同的,方便服务端获取

 <c:forEach items="${objlist}" var="obj">
<input id="key_${obj.Id}" name="key_${obj.Id}"/>
</c:forEach>

服务器端获取参数代码:

 @RequestMapping(value = "/xxxSave", method = RequestMethod.POST)
public String payPropsSave(final HttpServletRequest request){ final Enumeration<String> enums = request.getParameterNames(); //获取request所有参数 final List<Obj> objList = new ArrayList<Obj>(); while (enums.hasMoreElements()) {
final String paramName = enums.nextElement().toString();
if (paramName.startsWith("key_")) { //过滤以key_开头的所有参数
final String elementValue = request.getParameter(paramName);
final Obj obj = new Obj();
obj.setId(elementValue);
.
.
.
objList.add(props);
}
} objService.saveObjList(objList);
...
...
... return "xxx"; }

以上是工作中积累,如有不妥,请讨论指正,转载注明地址

Java 处理批量数据提交的更多相关文章

  1. 关于SQLServer2000中触发器的使用——多行数据提交

    关于触发器的使用,有很多争议.触发器的好处不言而喻是增强了数据的校验能力,能够有效地实现复杂的业务逻辑.在一定程度上走的比约束和check走的更远.关于触发器的坏处,最典型的就是触发器的使用会导致系统 ...

  2. Java实现Excel数据批量导入数据库

    Java实现Excel数据批量导入数据库 概述: 这个小工具类是工作中的一个小插曲哦,因为提数的时候需要跨数据库导数... 有的是需要从oracle导入mysql ,有的是从mysql导入oracle ...

  3. Java实现大批量数据导入导出(100W以上) -(一)导入

    最近业务方有一个需求,需要一次导入超过100万数据到系统数据库.可能大家首先会想,这么大的数据,干嘛通过程序去实现导入,为什么不直接通过SQL导入到数据库. 大数据量报表导出请参考:Java实现大批量 ...

  4. C#利用SqlDataAdapte对DataTable进行批量数据操作

    C#利用SqlDataAdapte对DataTable进行批量数据操作,可以让我们大大简化操作数据的代码量,我们几乎不需要循环和不关心用户到底是新增还是修改,更不用编写新增和修改以及删除的SQL语句, ...

  5. ligerui_实际项目_003:form中添加数据,表格(grid)里面显示,最后将表格(grid)里的数据提交到servlet

    实现效果: "Form"中填写数据,向本页"Grid"中添加数据,转换成Json数据提交,计算总和,Grid文本框可编辑,排序 图片效果: 总结: //disp ...

  6. jsp多模块相同数据提交到后台之数据处理

    最近在写一个java多模块表单提交,起初想的只是一个简单的form表单提交,写的时候发现不是真简单.多个相同类型数据提交到后台接收的问题很困难. 于是,和人进行深入的讨论,感觉j以json的格式提交时 ...

  7. jdbc工具类的封装,以及表单验证数据提交后台

    在之前已经写过了jdbc的工具类,不过最近学习了新的方法,所以在这里重新写一遍,为后面的javaEE做铺垫: 首先我们要了解javaEE项目中,文件构成,新建一个javaEE项目,在项目中,有一个we ...

  8. 工作随笔—Elasticsearch大量数据提交优化

    问题:当有大量数据提交到Elasticsearch时,怎么优化处理效率? 回答: 批量提交 当有大量数据提交的时候,建议采用批量提交. 比如在做 ELK 过程中 ,Logstash indexer 提 ...

  9. Java中的数据验证

    原文链接:https://www.cuba-platform.com/blog/2018-10-09/945 翻译:CUBA China CUBA-Platform 官网 : https://www. ...

随机推荐

  1. 解决 SVN版本冲突

    链接:http://blog.csdn.net/windone0109/article/details/4857044 版本冲突原因: 假设A.B两个用户都在版本号为100的时候,更新了kingtun ...

  2. IIS架构介绍

    IIS7及以上版本提供的请求-处理架构包括以下内容: Windows Process Activation Service(WAS)可以让站点支持更多协议,不仅仅是HTTP和HTTPS 可以通过增加或 ...

  3. 【python】-- 列表

    Python中最基本的数据结构.序列中的每个元素都分配一个数字 - 它的位置,或索引,第一个索引是0,第二个索引是1,依此类推 列表 1.定义列表,取出列表中的值 names = [] #定义空列表 ...

  4. 使用微软官方U盘制作软件来安装纯净版windows

    第一步:下载一个制作U启的工具;windows-usb-dvd-download-tool 微软官网:https://www.microsoft.com/en-us/download/windows- ...

  5. Bootstrap学习5--bootstrap中的模态框(modal,弹出层)

    bootstrap中的模态框(modal),不同于Tooltips,模态框以弹出对话框的形式出现,具有最小和最实用的功能集. 务必将模态框的 HTML 代码放在文档的最高层级内(也就是说,尽量作为 b ...

  6. awk 运算符(算术运算符,赋值运算符,关系运算符,逻辑运算符,正则运算符)说明

    awk作为文本处理优秀工具之一,它有独自丰富的运算符.下面我们一起归纳总结一下,所有运算符. 可以分为:算术运算符,赋值运算符,关系运算符,逻辑预算法,正则运算符. 一.运算符介绍 运算符 描述 赋值 ...

  7. 基于Linux Shell的开机启动服务

    CentOS重启后,很多服务需要手动启动,很是麻烦,今天把需要开机启动或关闭的服务整理了一下,放入Linux Shell中,再将该Shell加入/etc/rc.local中,即可实现存储的自动挂载.S ...

  8. 基于Web的实验室管理系统技术简要报告

    基于Web的实验室管理系统技术简要报告 Copyright 朱向洋 Sunsea ALL Right Reserved 一.网站架构 该网站使用C#语言,利用SQL Server2008数据库,采用V ...

  9. 【leetcode刷题笔记】Sort List

    Sort a linked list in O(n log n) time using constant space complexity. 题解:实现一个链表的归并排序即可.主要分为三部分: 1.找 ...

  10. python 3 模块

    python3 模块 一 .模块 1 什么是模块? 常见的场景:一个模块就是一个包含了python定义和声明的文件,文件名就是模块名字加上.py的后缀. import加载的模块分为四个通用类别: 1 ...