Tuesday, September 9, 2014

how to change default home page in grails

class UrlMappings {

static mappings = {
        "/$controller/$action?/$id?(.$format)?"{
            constraints {
                // apply constraints here
            }
        }
        "/login/$action?"(controller: "login")
        "/logout/$action?"(controller: "logout")

        "/"
                {
                    controller = "Home"
                }
        "500"(view:'/error')
}
}


the main difference is the orange shadowed line :) 

0 comments:

Post a Comment