大家好,
我有一个编辑按钮<span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span>
但是当点击它时,浏览器上的地址不是http:\ ... \ edit,
它是http:\ ... \ index。为什么?
我试图在 Controller 中删除或重命名Edit的名称,但这仍然没有影响。为什么?
谢谢!!!
最佳答案
尝试使用g:form
指定 Controller 名称,例如
<g:form controller="CONTROLLER_NAME">
关于grails - Grails的 Controller ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9764864/