blob: 8164e2f9bbe195ee85c19d062c3afcecb1bb0db3 [file]
<html>
<head>
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(["setDoNotTrack", true]);
_paq.push(["disableCookies"]);
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://analytics.apache.org/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '79']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Grails Reference</title>
<link rel="stylesheet" href="../../css/ref.css" type="text/css" media="screen" title="Ref" charset="utf-8">
<link rel="icon" href="../../img/favicon.ico" type="image/x-icon">
<link rel="shortcut icon" href="../../img/favicon.ico" type="image/x-icon">
</head>
<body class="body">
<h1>controllerName </h1><p class="paragraph"/><h2>Purpose</h2><p class="paragraph"/>Returns the name of the currently executing controller.<p class="paragraph"/><h2>Examples</h2><p class="paragraph"/><pre class="bq"><code>
class BookController {
def list = {
log.info "Executing within controller $controllerName"<p class="paragraph"/> render(view:actionName)
}
}</code></pre><p class="paragraph"/><h2>Description</h2><p class="paragraph"/>Returns the name of the currently executing controller which is dictated by the URL mappings
</body>
</html>