If you are using a container that supports 2.4 servlet spec, see this
page for your answer:
http://www.onjava.com/pub/a/onjava/2003/12/03/JSP2part2.html

If you are using a 2.3 servlet container:
1) Declare <%@ page isErrorPage="true" %>
2) Put this somewhere in the body of your page:
<%= exception.getMessage() %>

OR

<% exception.printStackTrace(out); %>

Hope that helps.

NG.

On Apr 7, 2005 11:20 AM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Hi there,
> is it possible to get exception information into a JSP file?
> I'm catching all exceptions with a single entry in the web.xml:
> 
> <error-page>
>      <exception-type>java.lang.Exception</exception-type>
>      <location>/error/errorException.jsp</location>
> </error-page>
> 
> Now I want to know, which exception was thrown, why and where
> like the e.printstacktrace() method or the default tomcat error pages.
> 
> Is there a way to get the information into my JSP file?
> 
> Thanks
> TT
> 
> Mit freundlichen Grüßen
> Thomas Nonnenmacher
> 
> T-Systems International GmbH
> Systems Integration 1
> Business Unit Manufacturing Solutions
> Hausadresse: Fasanenweg 5, 70771 Leinfelden-Echterdingen
> Tel: +49 (711) 972-40 259
> 
> [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> http://www.t-systems.com <http://www.t-systems.com/>
> http://www.efactory-solutions.de <http://www.efactory-solutions.de/>
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to