Search code examples
grailsgsp

Send parameter from view to controller via link in Grails


For example, I've this string in GSP:

<td>${cafeeInfo.cafeeName}</td>

How can I send value to the controller via parameter? I know how to do it with form, but to my mind in this case better method is possible.


Solution

  • <g:link action="???" controller="???" params="[param1: value1]">Whatever</g:link>
    

    Here is some Documentation