나는 create, createMonthly, createQuarterly의 세 가지 액션을 가지고 있으며, 하나의 gsp 페이지를 가지고 있는데, 세 개의 버튼이 데이터를 저장하는 3 개의 버튼을 생성해야한다.groovy로 grails의 gsp에 여러 제출 버튼을 만드는 방법은 무엇입니까?
이
<div class="buttons">
<span class="button"><g:submitButton name="create" class="save" value="${message(code: 'default.button.create.label', default: 'Create')}" /></span>
<br>
<span class="button"><g:submitButton name="createMonthly" class="save" value="${message(code: 'default.button.createMonthly.label', default: 'Create Monthly')}" /></span>
<br>
<span class="button"><g:submitButton name="createQuarterly" class="save" value="${message(code: 'default.button.createQuarterly.label', default: 'Create Quarterly')}" /></span>
</div>
하지만 난 단지이에서 createMonthly 및 createQuarterly 작업을 호출하는 방법, PLZ 도와 조치를 만들 보여 어떤 버튼을 클릭 할 때 그것의 의미에서 제대로 작동하지 .....
의미를 분명히하기 위해 코드를 추가하십시오. –