class UrlMappings { static mappings = { "/$controller/list" ( action:"list" ) "/$controller/index" ( action:"index" ) "/$controller/create" ( action:"create" ) "/$controller/save" ( action:"save" ) "/$controller/$id/schema/$subid" (action:"subid") "/JDBCConnection/$id/schema/$entity/SimpleXMLFactory" (action:"index", controller="simpleXMLFactory") { constraints { // apply constraints here } } "/$controller/$id?/$action?"{ constraints { // apply constraints here } } // "/$controller/$action?/$id?"{ // constraints { // // apply constraints here // } // } "/"(view:"/index") "500"(view:'/error') } }