2016-09-20 7 views
0

Grails 2.2를 사용하고 있으며 대량 메일을 보내는 전자 메일 양식이 있습니다. 이 양식은 POST 요청을 통해 서버에 제출됩니다. 이 양식에는 메시지를 전달할 전자 메일을 선택하기위한 많은 확인란이 있습니다. 이메일 수는 1000보다 클 수 있습니다. 분명히 grails는 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:[email protected] 
count_emails:0 
create:Send 

나는 Grails 2.2에서 이후 양식 매개 변수 제한 크기를 늘릴 수 없습니다. 이 제한은 2.2 이후의 Grails에서 추가되었습니다. 그래서 저는 이러한 매개 변수를 줄일 수있는 방법이 무엇인지 알고 싶었습니다. 한 가지 생각은 어떻게 든 자바 스크립트를 사용하는 매개 변수의 수를 제한하고 일반 양식 제출이 아닌 아약스를 사용하여 게시물 요청을 보내는 것입니다. 나는 어떤 의견을 주셔서 감사합니다. 감사!

+0

전 제출했습니다. 제출 버튼을 눌렀을 때 기능을 실행할 수 있다면 체크되지 않은 모든 체크 박스를 삭제 한 다음 체크 된 것들만 전송할 수 있습니다. –

+0

가능한 복제본 - http://stackoverflow.com/questions/39568039/is-there-any-limit-on-the-number-of-parameters-allowed-in-post-request-to-these –

답변

1

대신 어떤 limit를 넣어 또는 허용 된 매개 변수의 default 수를 incresing의 양식을 제출하는 동안, 당신은 단순히 list에 모든 email recipentpushing에 의해 매개 변수의 수를 줄일 수 있습니다.

또한이 경우 많은 양의 데이터를 전송할 때 request contentsize을 초과 할 가능성이 있습니다.

이 설정을 변경하기 위해 제공되는 구성 매개 변수가 있습니다. 기본 톰캣 구성을 변경해야합니다.

자세한 내용은 here을 참조하십시오.