DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=34904>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=34904 Summary: include in jsp returns out of order Product: Tomcat 5 Version: 5.0.27 Platform: PC OS/Version: Windows 2000 Status: NEW Severity: normal Priority: P2 Component: Servlet & JSP API AssignedTo: tomcat-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] have the following code in my jsp, which is called by a forward from my Controller servlet. The various Dispatchers are either servlets or jsps declared in my web.xml. All the servlets and jsps get run correctly. The problem is the output. The output of the root jsp and the 3-4 included jsps are arbitrarily rearranged, see below. Bizarre shuffling, not reverse order, but a different order and not interleaved with the text from the jsp. How do I fix this problem? Code: <BODY> <jsp:include page="WEB-INF/jsps/portal/header.jsp" flush="true"/> <% if(option1) { application.getNamedDispatcher("Option1Servlet").include(request,response); } else { %> <table><tr> <% if(option2) { %> <td><% application.getNamedDispatcher("Option2Servlet").include(request,response); %></td> <% } %> <td><% application.getNamedDispatcher(page).include(request,response); %></td> <td><% application.getNamedDispatcher("InfoServlet").include(request,response); %></td> </tr></table> <% } %> </BODY> generated html: <BODY> Page text // from the page dispatcher Info servlet text // from the infoservlet dispatcher Header form text // from the header.jsp dispatcher <table><tr> <td></td> <td></td> </tr></table> </BODY> -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]