Error routing

20 views
Skip to first unread message

laphroaig15

unread,
Apr 19, 2011, 8:44:36 PM4/19/11
to Gaelyk
Is there some way to intercept and route groovlet errors? I don't see
anything in the routing code and I don't see any obvious extension
points on the groovy servlet itself.

thanks,

Jess

Steven

unread,
Apr 20, 2011, 3:00:04 AM4/20/11
to Gaelyk
Have you tried a forward setting in web.xml?

Guillaume Laforge

unread,
Apr 20, 2011, 3:39:44 AM4/20/11
to gae...@googlegroups.com
Yes, it seems to be the sanctioned approach.

We had a recent discussion on error routing here in this thread:

I tried in the past to define some error routing handling in the past, but wasn't totally successful.
Furthermore, when trying to route the errors I could at least catch, I couldn't always forward and/or redirect to groovlets or templates, for some reason -- but I don't recall exactly the problems I was having back then.

It seems Google advises to use the standard web.xml error page definitions:

While we're at it... something to consider is to point at static web pages for your error pages (like 404), as if there's some system error or something along the lines, you may be able to view the static pages, whereas your Gaelyk app may not be running.

Guillaume

--
You've received this message because you've subscribed to the Gaelyk Google Group.
To send an email to the group, please write to: gae...@googlegroups.com
To unsuscribe from this group: gaelyk+un...@googlegroups.com
To show more options: http://groups.google.fr/group/gaelyk?hl=en



--
Guillaume Laforge
Groovy Project Manager
Head of Groovy Development at SpringSource
http://www.springsource.com/g2one

laphroaig15

unread,
Apr 30, 2011, 6:35:07 PM4/30/11
to Gaelyk
Thanks. The old school web.xml approach occurred to me after I posted
the question. I've been coddled by Spring for too long.
Reply all
Reply to author
Forward
0 new messages