1
我已命名映射我试图传递一个参数给。将参数传递给grails映射
<g:link mapping="accountDetails" params="[acctNumber:'8675309']">
我试图使用g.link
,在我的taglib不<g:link
和我得到一个例外:当我用Google搜索/在GSP使用Grails的标签时,看到在这个问题上很多回应。这是我的标记库行:
String otherProfileLink = g.link(mapping:"browseProfile", params:"['profileId':'123']", "my link text")
在我URLMappings:
name browseProfile: "/browseProfile/$profileId" {controller = 'search'; action = 'show'}
唯一的例外是:
Unable to create URL for mapping [/browseProfile/(*)] and parameters [{controller=message, action=index}]. Parameter [profileId] is required, but was not specified!
我试过存在params值有一些变化,有和没有引号,有/没有关闭。但到目前为止没有运气。
是的,就是这样。抨击报价。 – spock99