In fact, I'd almost 'fixed' this before going back and re-reading the servlet spec. I just can't find enough wiggle room in section 8.1 (of either 2.2 or 2.3) to allow this. If anyone else can find a way to interpret the spec differently, I'd be more than happy to change this for RC1.
The difference in the examples is that "doNotExist.jsp" has a servlet (sort of :), whereas "/doNotExist/" has no handler. ----- Original Message ----- From: "Thomas Colin de Verdiere" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Friday, February 15, 2002 2:30 AM Subject: BUG 5722 : Forward to page display a blank page > Sorry to bother you, i'd like to comment on bug 5722. > > I tried to forward to page that do not exist : > doNotExist > > <html> > <jsp:forward page="/doNotExist"/> > </html> > this displays a blank page > > i tried to forward to a page that do not exist with extension : > <html> > <jsp:forward page="/doNotExist.jsp"/> > </html> > this displays a 404 error page. > i was expecting that a page with no extension would display a 404 page. > > Thanks > > Thomas Colin de Verdière > > --------------------------------------------------------------------- > DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG > RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT > <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5722>. > ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND > INSERTED IN THE BUG DATABASE. > > http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5722 > > Forward to a page that have no extension displays a blank page > > [EMAIL PROTECTED] changed: > > What |Removed |Added > -------------------------------------------------------------------------- -- > Status|REOPENED |RESOLVED > Resolution| |INVALID > > > > ------- Additional Comments From [EMAIL PROTECTED] 2002-02-14 > 19:00 ------- > Section 8.1 of the servlet spec requires that the RequestDispatcher returns > the content of the path. If it's not there, it has no content. > > > > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>