I am writing a controller method which needs to pass a string param as the Domain name and int param as the key, then use Domain.get(id)
to get the Domain instance.
Could anyone show me how to do it? I've tried
${params.DomainName}.get(params.DomainId as int)
but no luck.
Thanks.