tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Han...@carat.dk
Subject Different behavior when forwarding to *.jsp and *.html in WEB-INF
Date Wed, 07 Nov 2001 16:48:48 GMT
In the attached webapp, outlined in diagram below i see some rather
strange behavior (result of my feeble attempt to isolate the problem).

http://localhost:8080/example/redirectOK.jsp returns ok.jsp

http://localhost:8080/example/redirectBAD.jsp returns empty document

I would have expected both requests to behave in a similar manner
is this a bug or is there a reason why outcome differs ?

/ -+- redirectOK.jsp
   |    <%pageContext.forward("WEB-INF/jsp/ok.jsp");%>
   |
   +- redirectBAD.jsp
   |    <%pageContext.forward("WEB-INF/jsp/bad.html");%>
   |
   +- WEB-INF -+- web.xml
               | <web-app>
               | </web-app>
               |
               +- jsp -+- ok.jsp
                       | <HTML>
                       |  <BODY>
                       |   <H1>ok.jsp</H1>
                       |  </BODY>
                       | </HTML>
                       |
                       +- bad.html
                         <HTML>
                          <BODY>
                           <H1>bad.html</H1>
                          </BODY>
                         </HTML>
Mime
View raw message