This mapping will match all paths to images such as . Of course you can achieve the same effect with a variable:

    1. static mappings = {
    2. "/images/$name.jpg"(controller: "image")
    3. }

    In this cases the mapping will match /image/logo.jpg as well as /image/other/logo.jpg. Even better you can use a double wildcard variable:

    1. "/images/$name**.jpg"(controller: "image")
    2. }

    If you use wildcard URL mappings then you may want to exclude certain URIs from Grails' URL mapping process. To do this you can provide an excludes setting inside the UrlMappings.groovy class:

    1. static mappings = {
    2. ...
    3. }