Or you could just do that...  :/

Very cool!  Thanks for that nugget, Christopher.



                                                                                       
                            
                    "Christopher                                                       
                            
                    K. St. John"         To:     Tomcat Users List 
<[EMAIL PROTECTED]>                
                    <cks@distribu        cc:                                           
                            
                    topia.com>           Subject:     Re: Redirect after session 
expires?                          
                                                                                       
                            
                    02/13/02                                                           
                            
                    10:57 AM                                                           
                            
                    Please                                                             
                            
                    respond to                                                         
                            
                    "Tomcat Users                                                      
                            
                    List"                                                              
                            
                                                                                       
                            
                                                                                       
                            




Michael Molloy wrote:
>
> ... if there is a setting for web.xml or something
> to foward all pages that throw exceptions to a certain
> url, that's what I'm looking for.
>

 In web.xml:

 <error-page>
    <exception-type> MyException </exception-type>
    <location> /myexception.html </location>
  </error-page>

 the servlet spec[1] has a complete description in
section SRV.9.9.2.


[1] http://java.sun.com/products/servlet/download.html


--
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>






--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to