>Page Source for GSP pages in Grails

>

Have you ever gotten an exception in your grails gsp pages?   The error is nice enough to point out exactly the line number that caused the error.  However when you get into the page the line it points to has nothing to do with the error.  So how do you find the real line to fix.  Well first of all you need to be running in development mode.   So make sure you didn’t use any environment flags in your run time command.  Then you simply add the ?showSource=true to the end of the URL.  So for example http://localhost:8080/acmm/offer/show1?showSource=true .  Like magic the compiled code complete with line numbers shows up on the screen.

What a lifesaver.

Scott Ryan

Advertisement

About Scott Ryan

Open Source software developer and architect. Serial Entrepreneur, Avid Harley rider and love to fly planes, Snow and Water Ski and Play Volleyball
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s