You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by 周雁鸣 <zh...@gmail.com> on 2021/01/20 00:54:25 UTC

Re: Hard limit of number of form elements submitted to an action?

It's limited by tomcat, tomcat allow 10000 parameters by default, struts2
take two parameters per checkbox, 10000/2=5000
https://github.com/apache/tomcat/blob/884b997f5a9a7da9f696d00574d3b727afbfae8c/java/org/apache/catalina/connector/Connector.java#L224

you can change maxParameterCount in server.xml
<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000"
redirectPort="8443" maxParameterCount="1000000"/>

Nikolay Ivanchev <ni...@me.com> 于2021年1月19日周二 下午11:51写道:

> Hi All
>
> Is there a hard limit of elements in a form when processed by Struts2
> We have a form with 11000 chekcboxes and when we submit it, only 5000
> checkboxes are sbumitted
>
> Is this a configurable parameter?
>
> Thanks
>
>