有没有办法限制发送到服务器的`form parameters`的数量?

时间:2016-09-20 04:54:27

标签: http-post grails-2.2

我正在使用Grails 2.2,我有一个发送大量电子邮件的电子邮件表单。此表单通过POST请求提交给服务器。此表单有许多复选框,用于选择要将邮件发送到的电子邮件。电子邮件的数量可能大于1000.显然,grails对通过POST发送的表单参数的数量有限制,我想我正在超过此限制。

以下是发送到服务器的post参数示例。参数的数量可以比所示的样本大很多。

_select_all:
_select_all:
_participant:
_select_all:
_select_all:
_participant:
_select_all:
_select_all:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_select_all:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_select_all:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_select_all:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_select_all:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_select_all:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_select_all:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_select_all:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_select_all:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_select_all:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_select_all:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_select_all:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_select_all:
_select_all:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_select_all:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_select_all:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_select_all:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_select_all:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_select_all:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_select_all:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_select_all:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_select_all:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_select_all:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_select_all:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_select_all:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
_participant:
subject:test
body:test
emails:asd@asd.com
count_emails:0
create:Send

我无法在Grails 2.2中增加表单参数限制大小。这个限制是在晚于2.2的Grails中添加的。所以,我想知道可以减少这些参数的方法。我想的一种方法是以某种方式使用javascript限制参数的数量并使用ajax而不是正常的表单提交发送post请求。我很感激任何意见。谢谢!

1 个答案:

答案 0 :(得分:1)

您可以简单地将所有limit default的参数数量减少到{{1>},而不是放置任何pushing或包含email recipent个允许参数的数量。 1}}在提交表单时。

同样在这种情况下,当您发送大量数据时,可能会超出list的{​​{1}}。

提供了一些配置参数来更改此设置。您需要更改默认的tomcat配置。

您可以找到更多详情here