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

The ActionMessage/ActionError tags ignore the "escape" parameter making them unusable.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.2.3.1
    • None
    • None
    • All

    • Patch, Important

    Description

      The ActionError and ActionMessage tag do not respect the "escape" parameter, making them unusable.

      AbstractMessageListHandler:54
         characters(error);
      

      Which means always escape.

      In contrast, FeildError does this correctly:

      FieldErrorHandler:70
         characters(fieldError, params.containsKey("escape") ? (Boolean) params.get("escape") : true);
      

      The fix is trivial:

      AbstractMessageListHandler:70
      -                    characters(error);
      +                    characters(error, params.containsKey("escape") ? (Boolean) params.get("escape") : true);
      

      Attachments

        Issue Links

          Activity

            People

              maurizio.cucchiara Maurizio Cucchiara
              dimipaun Dimi Paun
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 5m
                  5m
                  Remaining:
                  Remaining Estimate - 5m
                  5m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified