<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %> <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %> <%-- Test jsp include in a BodyTag (). --%> <% java.util.List list = new java.util.ArrayList(); list.add( "header.jsp" ); list.add( "body.jsp" ); int position=0; %>
1 request.getRequestDispatcher(uri).include(request, response)
include number <%= position++ %>
<% // insert the id response.flushBuffer(); response.getWriter().flush(); //out.flush(); request.getRequestDispatcher(uri).include(request, response); response.getWriter().flush(); response.flushBuffer(); %>

pageContext.include(page)
include number <%= position++ %>
<% // insert the id pageContext.include(uri); %>


tiles:insert
include number <%= position++ %>
Done