Send large amount of text to servlet via form
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.
Автор: Stack Overflow User Источник Размещён: 12.11.2019 09:39
Huge amount of text count. It's above 50,000
Edit Tomcat's server.xml. In the element, add an attribute maxPostSize and set a larger value (in bytes) to increase the limit.
maxPostSize="0" it means it is unlimited..
You should check your tomcat version, if bigger than 7
maxPostSize="0" will not effect, setting
maxPostSize="-1" is ok.