In Grails, how do I redirect to my home page (index.gsp) which is not part of any controller?
相关问题
- Grails External Configuration. Can't access to
- grails unit test + Thread
- JMS Job queue with Grails
- Grails: SpringSecurity roleHierarchy not working a
- Grails 2.1.1 - How to develop a plugin with an Ast
相关文章
- Grails: How to make everything I create Upper Case
- Grails and Quartz: Bad value for type long
- Sending JSON to javascript on GSP
- Grails application is not found after updating to
- How to save to a file system directory in Grails
- Groovy can't compile the code from a solution
- Grails: what are the main issues (and his solution
- How to use jasperreports subreports with grails ja
If you are redirecting from IndexController, then you should render(view:'/index')
Why do you need a redirect instead of a render?
redirect(uri:'/index.gsp')
might do the trick but I think I would justrender(view:'/index')
You can do a redirect to '/' like this: