1

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
fzzle
  • 1,466
  • 5
  • 23
  • 28
Stack Overflow User
  • 4,052
  • 6
  • 29
  • 47

2 Answers2

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
  • 1,735
  • 5
  • 25
  • 52
0

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

Jon Saw
  • 7,599
  • 6
  • 48
  • 57
Tao
  • 1
  • 2