Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-6442

Response truncated in the presence of special character

    XMLWordPrintable

    Details

      Description

      When a servlet puts a session attribute containing a collection of strings, one of the strings contains a special character (for example: ...) and this string is displayed in a JSP, the resulting page is truncated before the special character.

      For example, in a servlet:

      ArrayList optionList = new ArrayList();
      ...
      optionList.add("Any string 1");
      optionList.add("Any string 2");
      optionList.add("Any string 3");
      optionList.add("Any string 4");
      optionList.add("A string with ... character");
      optionList.add("Any string 6");
      optionList.add("Any string 7");
      optionList.add("Any string 8");
      ...
      request.getSession(false).setAttribute("myList", optionList);

      In the JSP:

      <c:forEach var="currentOption" items="${myList}">
      ${currentOption}
      </c:forEach>

      The resulting page gets truncated before the 5th line.

      In JBoss 4.0.0 the page shows complete, with a ? sign in the place of the special character.

        Gliffy Diagrams

          Attachments

          1. screenshot-1.jpg
            screenshot-1.jpg
            387 kB
          2. SpecialChar.war
            3 kB
          3. SpecialCharacter.txt
            0.0 kB

            Activity

              People

              • Assignee:
                rmaucher Valued Customer
                Reporter:
                juanm_med Juan Manuel Medina Apodaca
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: