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 <nikolay.ivanc...@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
>
>

Reply via email to