Reputation: 4082
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
Upvotes: 1
Views: 1289
Reputation: 1
You should check your tomcat version, if bigger than 7 maxPostSize="0"
will not effect, setting maxPostSize="-1"
is ok.
Upvotes: 0
Reputation: 1753
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..
Upvotes: 3