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

[GSS](7.1.z) UNDERTOW-1319 - Partial use of scriptlet expression in jsp:include does not work

XMLWordPrintable

    • Hide
      1. Create one Jsp page and use jsp:include to include another page.
      2. For Page attribute, try providing combination of constant string with some variable.
        e.g. : <jsp:include page='ForwardFile.jsp?name=<%=temp%>' flush="true"/>

      Expected : it should work and page should be included.
      Actual : java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: "=t"

      If we use scriptlet expression as below, it works fine:

      1. <jsp:include page='<%="ForwardFile.jsp?name="+temp%>' flush="true"/>
      2. <input type="text" name="j_<%=temp%>">
      Show
      Create one Jsp page and use jsp:include to include another page. For Page attribute, try providing combination of constant string with some variable. e.g. : <jsp:include page='ForwardFile.jsp?name=<%=temp%>' flush="true"/> Expected : it should work and page should be included. Actual : java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: "=t" If we use scriptlet expression as below, it works fine: <jsp:include page='<%="ForwardFile.jsp?name="+temp%>' flush="true"/> <input type="text" name="j_<%=temp%>">

      When we use scriptlet expression in jsp:include tag for page attribute, it does not work when used partially.

      E.g. : <jsp:include page='ForwardFile.jsp?name=<%=temp%>' flush="true"/>

      Exception :
      java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - For input string: "=t"
      at java.net.URLDecoder.decode(URLDecoder.java:194)
      at io.undertow.util.QueryParameterUtils.decodeParam(QueryParameterUtils.java:134)
      at io.undertow.util.QueryParameterUtils.handleQueryParameter(QueryParameterUtils.java:118)
      at io.undertow.util.QueryParameterUtils.parseQueryString(QueryParameterUtils.java:106)
      at io.undertow.util.QueryParameterUtils.mergeQueryParametersWithNewQueryString(QueryParameterUtils.java:151)
      at io.undertow.servlet.spec.RequestDispatcherImpl.includeImpl(RequestDispatcherImpl.java:328)
      at io.undertow.servlet.spec.RequestDispatcherImpl.include(RequestDispatcherImpl.java:265)
      at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:907)

      It works in JBoss EAP 6.4.x release.

              dtikhomi@redhat.com Dmitrii Tikhomirov
              vsoni16 Vishal Soni (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: