当前位置:网站首页>Large amount of data submitted by form post
Large amount of data submitted by form post
2022-04-23 08:26:00 【beinlife】
problem : page 1 After submission , If the amount of data is too large , page 2 Can't get , The value obtained is null
resolvent :
POST No problem with delivery .
stay tomcat It set up server.xml
<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443"
maxPostSize="2000000"/>
//maxPostSize This attribute 0 Represent unlimited
jsp page 1
<form name = "transferform" method = "post" action = "excel_create.jsp">
<input name="tabletitle" type="hidden" value="">
<input name="tablevalue" value="">
<script language="JavaScript">
var oldborder;
if(parent.Gridtable){
oldborder=parent.Gridtable.border;
parent.Gridtable.border="1";
}
transferform.tabletitle.value = parent.TABLE_TITLE.innerText;
transferform.tablevalue.value = parent.TABLE_DATA.innerHTML;
transferform.submit();
if(parent.Gridtable){
parent.Gridtable.border=oldborder;
}
</script>
</form>
jsp page 2
response.setCharacterEncoding("utf-8");
String data=(String)request.getParameter("tablevalue");
String title=(String)request.getParameter("tabletitle");
String filename=title+".cls";
response.setHeader("Content-Disposition","attachment;filename=" + new String("default_excel.xls".getBytes("GBK"), "ISO-8859-1"));
版权声明
本文为[beinlife]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230734168653.html
边栏推荐
- Navicat远程连接mysql
- Use of applicationreadyevent
- Vowel substring in statistical string of leetcode simple problem
- 【路科V0】验证环境2——验证环境组件
- 万物互联下如何对设备进行加密
- jsp页面编码
- Description of the abnormity that the key frame is getting closer and closer in the operation of orb slam
- 什么是RPC
- ansible自動化運維詳解(一)ansible的安裝部署、參數使用、清單管理、配置文件參數及用戶級ansible操作環境構建
- My heart's broken! A woman's circle of friends envied others for paying wages on time and was fired. Even her colleagues who liked her were fired together
猜你喜欢

The annotation is self-defined by implementing the parameter parser handlermethodargumentresolver interface

Goland 调试go使用-大白记录

ansible自动化运维详解(一)ansible的安装部署、参数使用、清单管理、配置文件参数及用户级ansible操作环境构建

输入/输出系统

Install MySQL for Ubuntu and query the average score

Shell脚本进阶

Transformer-XL: Attentive Language ModelsBeyond a Fixed-Length Context 论文总结

关于ORB——SLAM运行中关键帧位置越来越近的异常说明

2022.4.11-4.17 AI industry weekly (issue 93): the dilemma of AI industry

Transformer XL: attention language modelsbbeyond a fixed length context paper summary
随机推荐
The annotation is self-defined by implementing the parameter parser handlermethodargumentresolver interface
DOM 学习之—添加+-按钮
JS converts tree structure data into one-dimensional array data
【深度好文】Flink SQL流批⼀体化技术详解(一)
396. Rotate Function
Knowledge points and problem solutions related to information collection
PyQt5开发之QTableWidget表头自定义与美化(附源代码下载)
使用JWT生成与解析Token
Overview of bus structure
Kubernetes in browser and IDE | interactive learning platform killercoda
My heart's broken! A woman's circle of friends envied others for paying wages on time and was fired. Even her colleagues who liked her were fired together
Community group purchase applet source code + interface DIY + nearby leader + supplier + group collage + recipe + second kill + pre-sale + distribution + live broadcast
[effective go Chinese translation] function
【学习】从零开始的音视频开发(9)——NuPlayer
对li类数组对象随机添加特性,并进行排序
QT reading and writing XML files
匿名类型(C# 指南 基础知识)
AQS & ReentrantLock 实现原理
There are some problems when using numeric type to query string type fields in MySQL
Introduction to protobuf