Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-2919

Display problem with html page in <jsp:include> and wrapped in a <tiles:insert>

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.2.9
    • None
    • Tiles 1 Plugin
    • None
    • Solaris 10, SuSE Enterpise Linux 10, Sun Java Web Server 6 .1 sp6

    Description

      main.jsp >>

      <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
      <html>
      <head></head>
      <body>
      <tiles:insert page="/tiles_base.jsp" flush="false">
      <tiles:put name="text" type="string">
      <jsp:include page="/jsp_include.html"/>
      </tiles:put>
      </tiles:insert>
      </body>
      </html>

      >>>>>>>>>>>>>>

      tiles_base.jsp >>

      <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles"%>
      This is the tiles base page<br>
      <tiles:insert attribute="text" ignore="false"/>

      >>>>>>>>>>>>>>

      jsp_include.html >>

      This is the jsp include page<br>

      >>>>>>>>>>>>>>

      This displays incorrectly as

      This is the jsp include page<br>
      <html>
      <head></head>
      <body>
      This is the tiles base page<br>
      </body>
      </html>

      When the jsp:include should be after the first message, and inside the <body> tag. If the page's extension is changed to jsp instead of html and included, it works fine.

      Attachments

        Activity

          People

            Unassigned Unassigned
            kavanutz Sean Kavanagh
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: