Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-2423

Spring message tag should escape html where appropriate

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 1.1.4.RELEASE
    • Fix Version/s: 1.1.4.RELEASE
    • Component/s: WEB MVC
    • Labels:
    • Environment:
      Linux Ubuntu 10.10, Apache Maven 3.0.2, Java 1.6.0_23, Commit 4e7e817def6094bfc6f8f1b7cc989c9969954651

      Description

      There are some spring message tags used along generated project with html escape:

      <html xmlns:spring="http://www.springframework.org/tags" ...>
      ...
      <spring:message code="myCode" ... />
      ...
      

      It's required set to false the html escape attribute:

      <html xmlns:spring="http://www.springframework.org/tags" ...>
      ...
      <spring:message code="myCode" ...  htmlEscape="false" />
      ...
      

      Some examples:

      • src/main/webapp/WEB-INF/layouts/default.jspx
      • src/main/webapp/WEB-INF/views/footer.jspx
      • src/main/webapp/WEB-INF/views/header.jspx
      • src/main/webapp/WEB-INF/views/index-template.jspx
      • src/main/webapp/WEB-INF/views/index.jspx
      • src/main/webapp/WEB-INF/views/resourceNotFound.jspx
      • src/main/webapp/WEB-INF/views/uncaughtException.jspx
      • ...

        Attachments

          Activity

            People

            Assignee:
            sschmidt Stefan Schmidt
            Reporter:
            mmartinez Mario Martínez Sánchez - gvNIX - DISID
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 0.5d
                0.5d
                Remaining:
                Remaining Estimate - 0.5d
                0.5d
                Logged:
                Time Spent - Not Specified
                Not Specified