通过表单将大量文本发送到servlet [英] Send large amount of text to servlet via form

查看:144
本文介绍了通过表单将大量文本发送到servlet的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究Java Servlet。我在我的jsp文件上有表单,我从表单发送大量文本到成功发送到servlet的servlet但是,我无法从请求对象获取任何参数get参数在我的servlet类上总是为null,如果我发送的少传递给servlet完美运行时的文本量。我不知道如何解决这个问题。你能知道这个问题解决方案对我有帮助吗我将非常感谢您的效果。

I'm working on Java Servlet. I have form on my jsp file and I am sending huge amount of text from form to servlet it sends to servlet successfully but, I can't get any parameters from request object get parameters are always null on my servlet class, if I send less amount of text when pass to servlet working perfectly. I don't know how to solve this problem. Can you know this problem solution help me. I will appreciate your effect.

Huge amount of text count. It's above 50,000


推荐答案

编辑Tomcat的server.xml。在元素中,添加属性maxPostSize并设置更大的值(以字节为单位)以增加限制。
if maxPostSize =0这意味着它是无限的..

Edit Tomcat's server.xml. In the element, add an attribute maxPostSize and set a larger value (in bytes) to increase the limit. if maxPostSize="0" it means it is unlimited..

这篇关于通过表单将大量文本发送到servlet的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆