1

I am very new to grails and have customized the UrlMappings.groovy file as below:

"/"(controller:'sampleGroovy',action:'index').

But when I run the application, it still hits the default grails index.gsp file instead of the default controller I configured.

Can someone please let me know where I am going wrong here.

Scott
  • 16,711
  • 14
  • 75
  • 120
Michael Maze
  • 73
  • 2
  • 10
  • After running my application couple of times and it is now hitting my customized controller instead of the default grails index page. I am really not sure why it did not work before as i did not make any changes except running my application. Is it the issue with embedded Tomcat Container? – Michael Maze Feb 26 '12 at 21:54

1 Answers1

2

Run a grails clean before running the application again. It should be your first troubleshooting step when something isn't working as expected and there aren't any other glaring mistakes. That will ensure all files, including UrlMappings.groovy, are recompiled.

doelleri
  • 19,232
  • 5
  • 61
  • 65