href 的 Grails 错误
Grails error with href
我需要一些帮助:
<a class="btn btn-default" href="listExamples">
${message(code: 'examples.label', default: 'example')}
</a>
通常我会去:
"aplication/controller/listExamples"
但是当我点击它时,结果是:
'The requested resource (/aplication/controler/listExample) is not available.'
为什么会这样?首先,我没有为 listExample
.
使用 link
尝试使用 g:link 标签,例如:
<g:link controller="aplication" action="listExamples" class="btn btn-default">
<g:message code='examples.label' default='example'/>
</g:link>
我需要一些帮助:
<a class="btn btn-default" href="listExamples">
${message(code: 'examples.label', default: 'example')}
</a>
通常我会去:
"aplication/controller/listExamples"
但是当我点击它时,结果是:
'The requested resource (/aplication/controler/listExample) is not available.'
为什么会这样?首先,我没有为 listExample
.
尝试使用 g:link 标签,例如:
<g:link controller="aplication" action="listExamples" class="btn btn-default">
<g:message code='examples.label' default='example'/>
</g:link>