I changed mapping of my page in UrlMappings to the following value:
name producingCountry: "${adminArea}/producing-country/$id" (controller: "producingCountry", view: "/producingCountry/show") {
constraints { id(matches: /\d+/) }
}
The page (/producingCountry/show) is as simple as:
<%@ page contentType="text/html;charset=UTF-8" %>
<html>
<head>
<meta name="layout" content="main">
<title><g:message code="producingCountry.show.title"/></title>
</head>
<body>
</body>
</html>
メッセージはレンダリングされなくなりました。次のような最後の行で、その URL がコントローラーメソッド「show」にマップされたときに正常に機能しました。
render [producingCountry: (country)]
この問題を解決するにはどうすればよいですか?