urlmappings

Grails UrlMappings with parameter values containing "."

Given this UrlMapping: "/foo/$foobar" { controller = "foo" action = "foo" constraints { } } Combined with this controller: class FooController { def foo = { def foobar = params.foobar println "foobar=" + foobar } } And with these requests: http://localhost:8080/app/foo/example.com give the ...

Grails UrlMappings with URL-pattern ending with "/"

I have the following UrlMapping in my Grails UrlMappings class: "/$something/" { controller = "controllerName" action = "actionName" constraints { } } Requests to both "/foobar/" and "/foobar" gets routed to the correct controller and action. However, URL:s created using g:link does not end with slash ("/"...

Weird UrlMappings behavior for Grails 1.2.1

I've created a Grails (1.2.1) application in SpringSource Tools Suite 2.3.2 and here is my UrlMappings.groovy: class UrlMappings { static mappings = { "/$controller/$action?/$id?"{ constraints { // apply constraints here } } "/broadcasters/setInterval" { //cause a 404 controller = "broadcas...

Grails with JAX-RS vs UrlMappings for RESTful Services

I started out looking at the JAX-RS plugin for grails and thought that was the way to go mainly because it was based on JSR-311 and I figure following standards is usually the smart thing to do. However, using Grail's UrlMappings it seems I basically achieve the same thing. I figure I'm missing something, however, we aren't doing anyth...