gpt4 book ai didi

grails - 如何使用Grails 2.2.0设置邮件中的链接

转载 作者:行者123 更新时间:2023-12-02 14:24:54 24 4
gpt4 key购买 nike

我正在尝试通过grails标签设置链接。但是它只是向我显示 Controller 和 Action 名称

<g:link controller="email" action="sendpart" id="${mailObj?.to_id}">View inbox </g:link>

在网址中,它只是向我显示

http://Demo/email/sendpart/2

而不是

http://localhost:8080/Demo/email/sendpart/2

谢谢!

最佳答案

添加absolute="true"

<g:link controller="email" action="sendpart" id="${mailObj?.to_id}" absolute="true">View inbox </g:link>

请享用。

关于grails - 如何使用Grails 2.2.0设置邮件中的链接,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18568684/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com