This is *really* weird code. Can you show us resulting the HTML source?
As Massimo notes, best to use URL() function for URLs. You generally don't need this: response.view="default/test.html". Shouldn't matter but you could just do: return 'CONTENTS' Going to http://myserver.com/myapp/test/4 should be the same as going to http://myserver.com/myapp/test. The '4' is simply disregarded since your controller doesn't look for it.

