Send large amount of text to servlet via form

java javascript html5 jsp servlets

859 просмотра

2 ответа

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
Автор: Stack Overflow User Источник Размещён: 12.11.2019 09:39

Ответы (2)

3 плюса


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..

Автор: Santino 'Sonny' Corleone Размещён: 26.03.2014 07:59

0 плюса

You should check your tomcat version, if bigger than 7 maxPostSize="0" will not effect, setting maxPostSize="-1" is ok.

Автор: Tao Размещён: 14.04.2017 01:14
Вопросы из категории :