Hi everybody, Whenever I follow the Error Page Recipe [1] to create custom a error response page, everything works fine except that, to my knowledge, the page can only have a fixed message. For example, my 403 error page always says "Sorry, you can't have that". That's fine, but what if I want my error pages to display the more specific underlying message?
For example, the Java class for one of my app's regular pages has the following within an onActivate() method: return new HttpError(500, "The database just blew up"); which generates the proper 500 response to the container. Now, if I have NOT configured a custom error response for status 500 in my web.xml then my servlet container (Jetty, currently) dutifully displays the specific message (the "reason") that was given: HTTP ERROR 500 Problem accessing /foo. Reason: The database just blew up But I would really like to make the text of that 3rd line ("The database just blew up") visible within my (Tapestry) custom error page. Is there any way to get it? I tried injecting the Response object but it doesn't seem to contain anything I can use for this. I could copy the message to the session before calling return new HttpError(....) but -- yuk. Thanks! [1] http://tapestry.apache.org/error-page-recipe.html --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org