Send large amount of text to servlet via form

后端 未结 2 1938
执笔经年
执笔经年 2021-01-24 10:11

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 paramet

相关标签:
2条回答
  • 2021-01-24 10:51

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

    0 讨论(0)
  • 2021-01-24 10:56

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

    0 讨论(0)
提交回复
热议问题