Archive for March, 2008

Using the showSource parameter trick with rendered templates

Monday, March 31st, 2008

This is a follow-up to my previous post about using the showSource parameter in Grails. If you're using templates to keep DRY, you may need to pay attention to the details of the stack trace that show which GSP contains the error. For instance, say my show.gsp renders a template ...

Viewing the source of a compiled GSP in Grails

Saturday, March 15th, 2008

So you're working happily on your Grails application, coding away, being extremely productive until BOOM! You get a Grails Runtime Exception error page like this when you hit a GSP: What the heck? Reading the stack trace you see that the exception is caused somewhere in a GSP: You've found ...