|
From: Arjen P. <ar...@in...> - 2006-07-22 10:20:32
|
Well, you could figure out if the response has already been rendered by calling isCommitted() on the HttpServletResponse. If it isn't, you can call reset(), and render a new error page response. I'm not saying that we should, I'm just showing that there is a possibility. Arjen On 22-jul-2006, at 12:15, Juergen Hoeller wrote: > Point taken, Matt. > > I'm not opposed to adding callback support for view exceptions. > However, we > can't get rid of the issue that a view exception will usually lead > into a > situation where we can't render a proper error page anymore, since we > already sent part of the original response to the client... > > Juergen > > > -----Original Message----- > From: spr...@li... > [mailto:spr...@li...] On > Behalf > Of Matt Sgarlata > Sent: Friday, July 21, 2006 9:36 PM > To: spr...@li... > Subject: [Springframework-developer] HandlerInterceptor is a > misleading name > > HandlerInterceptors actually intercept both handlers and views, > whereas > HandlerExceptionResolvers only resolve exceptions for handlers. > Just wanted > to point this out... > > Matt > > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT Join > SourceForge.net's > Techsay panel and you'll get the chance to share your opinions on IT & > business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer > > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys -- and earn > cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer |