开发者

how can i redirect from default controller action to my generated controller action?

in my list page of scaffolding i have put a link in span.. on click of that link i want it to take me my own created controller action..

i tried giving <g:link controller="mycontroller",action="myaction">mylink</g:link>

that din work for me then i tried

<g:link action="redirectingAction">mylink<开发者_运维知识库;/g:link>

but now i am not able to redirect from this redirectingAction in default controller which i edited there

what can i do to come out of this problem?


Your code <g:link controller="mycontroller",action="myaction">mylink</g:link> is wrong. Remove the comma before the action parameter and it should work:

<g:link controller="mycontroller" action="myaction">mylink</g:link>

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜