This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RequestDispatcher.include

 
Jerson Chua
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What should be the result of a.jsp?
In Tomcat, the output was
bc
<br>
and In Resin, the output was
b
<br>
c
I thought that the output should be the one returned by Resin but why did Tomcat return such output?
---- a.jsp code ----
<%
RequestDispatcher rd = application.getRequestDispatcher("/rd/b.jsp");
rd.include(request, response);
%>
<br>
<%
rd = application.getRequestDispatcher("/rd/c.jsp");
rd.include(request, response);
%>
---- b.jsp code ----
b
---- c.jsp code ----
c

Thanks,
Jerson
 
k space
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not sure why, but I would say tomcat's behaviour is incorrect.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic