Error-page, display Exception message and stack trace on page

Hi,

I have setup an errorpage. I configured the web.xml

to navigate to that page if any exceptions occur.

<error-page>

<exception-type>java.lang.Throwable</exception-type>

<location>/faces/MyErrorPage.jsp</location>

</error-page>

I would now like to display the Exception information on that page. (So the exception.getMessage() and the stacktrace .)

Any help would greatly be appreciated.

[483 byte] By [fredje_2000a] at [2007-11-27 9:46:05]
# 1
Found it...FacesContext context = FacesContext.getCurrentInstance();Map requestMap = context.getExternalContext().getRequestMap();Throwable ex = (Throwable) requestMap.get("javax.servlet.error.exception");
fredje_2000a at 2007-7-12 23:55:56 > top of Java-index,Development Tools,Java Tools...