通过表单将大量文本发送到servlet [英] Send large amount of text to servlet via form
问题描述
我正在研究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屋!