Linking to other actions from a view page

Use the <g:link> tag to link to another action. For example:

To link to ‘someAction’ in the same controller being used to handle this current view page, passing an id:

<code>&lt;g:link action="someAction" id="${exampleDomainObject.id}"&gt;</code>

If the action is in a different controller, then specify the controller as well:

<code>&lt;g:link action="someAction" controller="OtherControlller" id="${exampleDomainObject.id}"&gt;</code>

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.