tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Catching RequestDispatcher not found errors
Date Fri, 19 May 2006 11:59:32 GMT
Stephen Suen wrote:

> 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?

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.org/repos/asf/tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/core/ApplicationDispatcher.java

The wrapper that checks if it is included before calling sendError is
http://svn.apache.org/repos/asf/tomcat/container/tc5.5.x/catalina/src/share/org/apache/catalina/core/ApplicationHttpResponse.java

HTH,

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message