Re: Catching RequestDispatcher not found errors

2006-05-19 Thread Stephen Suen
Hi, Mark Thanks for your patient help. I have figured out the problem. It's not relevant to Tomcat. I tested my web application from NetBeans IDE with HTTP monitor enabled, NetBeans put a wrapper on the Tomcat's response object. I think that wrapper caused the problem. Thanks Best Regards Ste

Re: Catching RequestDispatcher not found errors

2006-05-19 Thread Stephen Suen
On 5/19/06, Mark Thomas <[EMAIL PROTECTED]> wrote: The RequestDispatcher is created in this class: http://svn.apache.org/repos/asf/tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/core/ApplicationContext.java ApplicationDispatcher implements RequestDispatcher http://svn.apache

Re: Catching RequestDispatcher not found errors

2006-05-18 Thread Stephen Suen
requestUri)); } response.sendError(HttpServletResponse.SC_NOT_FOUND, requestUri); The call to sendError should be ignored, then why a 404 error page returns? I think maybe Tomcat overrides this behaviour or does some trick elsewhere. Can you give me more help? Best Regards Stephen Suen

Catching RequestDispatcher not found errors

2006-05-18 Thread Stephen Suen
did a hard work trying to find where in the source code and how Tomcat set such a status code to the response, but failed. Can any body tell me where I can find such source code, and give me some basic explanation on it. Thanks in advance -- Stephen Suen [EMAIL PROTECTED]