Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-25037

(7.4.z) UNDERTOW-2285 - Request parameters lost via jsp:include chain

XMLWordPrintable

      Since 7.4.9 request parameters are not properly propagated in jsp:included pages.

      Reproducible with several nested jsp:include pages:

      main.jsp

      <jsp:include page="included.jsp?url_param1">
          <jsp:param name="jsp_param1" value="0" />
      </jsp:include> 

      included.jsp

      <jsp:include page="included_included.jsp?url_param2">
          <jsp:param name="jsp_param2" value="0" />
      </jsp:include>

      included_included.jsp

      <jsp:include page="included_included_included.jsp?url_param3">
           <jsp:param name="jsp_param3" value="0" />
      </jsp:include>
      

      included_included_included.jsp

      <%
         for (String p : java.util.Collections.list(request.getParameterNames())) {
           System.out.println(p);
         }
      %>
      

      Accessing main.jsp with

      main.jsp?mainParam
      

      Expected request parameters in innermost jsp (included_included_included.jsp):

      mainParam
      url_param1
      jsp_param1
      url_param2
      jsp_param2
      url_param3
      jsp_param3
      

      Actual parameters:

      mainParam
      url_param3
      jsp_param3
      

            rhn-engineering-lgao Lin Gao
            milan.michalicek@redhat Milan Michalicek (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: