I use the new feature ServletContextListener of the Servlet specifications
2.3. 
I defined the following class: 
public final class XSS_ServletContextListener implements
ServletContextListener { 
        private static ServletContext s_context = null; 
        public void contextInitialized(ServletContextEvent arg0) {
         s_context = arg0.getServletContext(); 
        try{ // Get the reference on a CORBA object reference 
                SessionManager sessionManager =
SessionManager.getSingleInstance(); ... 
        } 
        catch (ExBadManagerName ex) 
        { } 
} 
I don't what to do when the exception ExBadManagerName occurs. I am trying
to define in the web.xml file of my application the following element 
<error-page> 
        <exception-type>com.mycompagny.ExBadManagerName </exception-type> 
        <location>/pages/errorPage.jsp</location> 
</error-page> 
but the page is not displayed. 
What can I do to inform the client if an exception occurs, the index.jsp
page of my application has not to be displayed. 
Thanks a lot in advance 




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

Reply via email to