You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2001/12/27 22:59:54 UTC

DO NOT REPLY [Bug 5598] New: - (JSP Problem) RequestDispatcher doesn't include HTML output in place

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=5598>.
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=5598

(JSP Problem) RequestDispatcher doesn't include HTML output in place

           Summary: (JSP Problem) RequestDispatcher doesn't include HTML
                    output in place
           Product: Tomcat 4
           Version: 4.0.1 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Unknown
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: rigel.heung@gs.com


I don't know if this is a Jasper or Catalina problem. For some reason, when I 
try to include the output from another JSP using RequestDispatcher object, the 
output doesn't fall into correct place. 

The keyword "-Between-" should be rendered between "A" and "B" inside the table 
cell tag, but it was rendered all the way to the top of the HTML output. The 
same codes work fine under WebLogic 5.1(SP9) or above. The following is the 
sample codes to generate this problem:

----- [x.jsp] -----

<TABLE>
  <TR>
    <TD>
    A
    <%
      RequestDispatcher rd = request.getRequestDispatcher("/y.jsp");
      rd.include(request, response);
    %>
    B
    </TD>
  </TR>
</TABLE>

----- [y.jsp] -----

-Between-

----- [HTML source from browser after x.jsp has been accessed] -----

-Between-
<TABLE>
	<TR>
		<TD>
		A
		
		B
		</TD>
	</TR>
</TABLE>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>