URLMappings for views - Grails 1.3.x

groovy.user

New member
We are using Grails 1.3.x.

For a Grails based project, we have around 500+ static pages for which we created respective .gsps in views. There is no controller required since all are static pages. We created conf/UrlMappings.groovy and have added mapping like

"/aa/bb/cc"(view:"/aa/bb/cc")
"/abc"(view:"/abc")
"/aa/bb/cc/dd" (view:"/aa/bb/cc/dd")

site is working perfectly but the maintenance would be problematic for mappings of 500+ pages.

can we have a single line/block in UrlMappings.groovy which can take care of redirection to proper view page?

Thanks in advance.
 
Top