Friday, December 6, 2013

Grails : full URL of a gsp.

If you need the full URL of a gsp, you can use tag createLink :
<g:createLink action="${params.action}" absolute="true"/>
It will generate something like taht : http://localhost:8080/fjLearning/training

The params.action variable give us the current action.In our case it's training.

More details about tag createLink on

No comments:

Post a Comment