Miles, you can capture a stack trace from any throwable using a technique
like:

                  ByteArrayOutputStream baos = new ByteArrayOutputStream();
                  (new Throwable(s)).printStackTrace(new
PrintStream(baos));
                  return baos.toString();

The result could be logged.

Hope this helps.

JC


                                                                                
                                                    
                      "Daffin, Miles                                            
                                                    
                      (Company IT)"                To:       "Struts Users 
Mailing List" <user@struts.apache.org>                   
                      <[EMAIL PROTECTED]        cc:                             
                                                 
                      tanley.com>                  Subject:  RE: Handling the 
exceptions in struts                                  
                                                                                
                                                    
                      01/11/2005 05:54 AM                                       
                                                    
                      Please respond to                                         
                                                    
                      "Struts Users Mailing                                     
                                                    
                      List"                                                     
                                                    
                                                                                
                                                    




The html:errors tag will display a generic message but how can I display
the details of what went wrong (e.g. the Exception's stacktrace) in the
designated error jsp?

What are the options?

Can someone point me at some docs that go into this in more detail?

Thanks,

-Miles









**********
The information contained in this communication is confidential, private, 
proprietary, or otherwise privileged and is intended only for the use of the 
addressee.  Unauthorized use, disclosure, distribution or copying is strictly 
prohibited and may be unlawful.  If you have received this communication in 
error, please notify the sender immediately at (312)653-6000 in Illinois; 
(972)766-6900 in Texas; or (800)835-8699 in New Mexico.
**********


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

Reply via email to