|
From: Ivan R. <iv...@we...> - 2003-09-05 15:36:03
|
> Personally the ServletException thrown by MultiActionController in the case > of missing request handling method does not bother me. IMO the > DispatcherServlet is a generic "front controller" servlet which could be > parameterized with different HandlerAdaptors and should not care about > specifics of any particular handler. So I guess it's ok for the > DispatcherServlet to "get" ServletExceptions with "wrapped" exeptions from > handlers. This is a special case. With handlers we are in effect creating a virtual file system (from a point of view of the web server). So it is semantically correct to return a "not found" message. It isn't a big deal, since you can always inherit the servlet and override the method but to me feels natural. > DispatcherServlet to "get" ServletExceptions with "wrapped" exeptions from > handlers. I somehow managed to overlook the fact that the NoSuchRequestHandlingMethodException exception is actually wrapped inside the ServletException. Obviously, that is good enough as far as propagation is concerned. -- ModSecurity (http://www.modsecurity.org) [ Open source IDS for Web applications ] |