Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3938

s:include problem with hrml comment <!-- -->

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Not A Problem
    • Affects Version/s: 2.3.7
    • Fix Version/s: 2.3.16
    • Component/s: Other
    • Labels:

      Description

      in my layout.jsp I have

      <html>
      <head>
      <s:include value="../include/pippo.jsp" />
      </head>

      if, in pippo.jsp I have an HTML comment with include a character with accent è|ì|ò|à then result html code is missing the "-->"

      Example pippo.jsp
      --------------------------
      <!-- è -->
      --------------------------

      The resulting HTML is
      --------------------------
      <!--
      </head>
      --------------------------

      Is missing the "-->" part of the comment so all the rest is like included in a comment.

      The previous version of struts2 was not doing it.

        Issue Links

          Activity

          Hide
          lukaszlenart Lukasz Lenart added a comment -

          Basically page encoding must match what is defined as struts.locale/struts.i18n.encoding

          Show
          lukaszlenart Lukasz Lenart added a comment - Basically page encoding must match what is defined as struts.locale / struts.i18n.encoding
          Hide
          lukaszlenart Lukasz Lenart added a comment - - edited

          Do you use <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> in each JSP page?

          Show
          lukaszlenart Lukasz Lenart added a comment - - edited Do you use <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%> in each JSP page?

            People

            • Assignee:
              lukaszlenart Lukasz Lenart
              Reporter:
              rsorrt Rsorrt
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development