In Grails 1.3.1, I want 404 errors to render the main action of the list controller index. This controller uses a regular layout file in the layouts directory (views / layouts / list.gsp), which then uses the included snippet for this action (views / list / index.gsp).
When this action is usually performed ( http: // localhost / list / index ), then both the layout file and the fragment are applied, and it looks correct. However, when accessed through rule 404 in the UrlMapping class, it is "404" (controller: "list" , action: "index") - the layout file is not used, and only a fragment is displayed.
Does anyone know why this is happening, and is there some way I can display a normal layout for 404 (or another) error display?
source share