tags:

views:

1122

answers:

3

What is the configuration setting for modifying the default homepage in a Grails application to no longer be appName/index.gsp? Of course you can set that page to be a redirect but there must be a better way.

+2  A: 

HTH - not a Grails developer but run across that link while looking for something else.

KiwiBastard
A: 

Edit UrlMappings.groovy

Add for example add this rule, to handle the root with a HomeController.

"/"(controller:'home')

dahernan
+2  A: 

Add this in UrlMappings.groovy

 "/"
 {
    controller = "yourController"
    action = "yourAction"
 }

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

(cut/pasted from IntelliGrape Blog)

Bob Herrmann