The Exception object is just that, an object.  If you want to call methods on it to 
pull information out of it, you can.  You can call the "printStackTrace()" method to 
store the stack trace on a stream or writer (like a "StringWriter").

> -----Original Message-----
> From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
> 
> David - thanks for the reply.  Using the 'o.a.s.a.EXCEPTION' in a
> <bean:write> gives me the basic exception (i.e.
> java.lang.NullPointerException). It would be nice to be able 
> to provide
> additional information - stack trace or something similar.  
> Do I need to
> write a custom ExceptionHandler to do this?
> 
> Jerry
> 
> > -----Original Message-----
> > From: Karr, David [mailto:[EMAIL PROTECTED]]
> > 
> > Unfortunately, the only thing that is really clear about this 
> > is the code (AFAICS).  The default exception handler will put 
> > the exception into request scope under the key symbol 
> > "Globals.EXCEPTION_KEY", which is the string 
> > "org.apache.struts.action.EXCEPTION".
> > 
> > > -----Original Message-----
> > > From: Jerry Jalenak [mailto:[EMAIL PROTECTED]]
> > > 
> > > In my struts-config I have a <global-exception> defined to handle
> > > java.lang.Exception:
> > > 
> > >   <global-exceptions>
> > >           <exception path="error.page" 
> > > type="java.lang.Exception"/>
> > >   </global-exceptions>
> > > 
> > > On this page I want to be able to display the text from the 
> > > exception (i.e.
> > > e.getMessage()).  How can I get access to this?

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

Reply via email to