In this blog I want to share how can we customize home page in a Grails application.

In grails, the default homepage is the web-app/index.gsp if we explicitly don`t specify any thing; but of-course that is not sufficient for all apps. We need to have a custom landing page instead of the default page provided by grails.

This can be easily achieved by modifying the URL mappings in UrlMappings.groovy file. 

controller = "yourController"
action = "yourAction"

By configuring the URLMappings this way, the home-page of the app will be yourWebApp/yourController/yourAction.

Hope this helps.

-Pradeep Garikipati



Aman AggarwalAmit JainManoj Mohan
Subscribe to our Blog

Get latest articles straight to your inbox. Enter your email address below: