Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-2493

[struts-faces] ErrorsRenderer assumes ActionErrors

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.4
    • 1.3.5
    • None
    • Operating System: other
      Platform: Other
    • 35232

    Description

      The renderer for the <s:errors/> tag assumes that ActionErrors is used, not
      ActionMessages. This will result in a ClassCastException when the following
      code is used in the Action:
      ActionMessages errors = getErrors(request);
      errors.add(ActionMessages.GLOBAL_MESSAGE,
      new ActionMessage("prompt.exception"));
      saveErrors(request, errors);

      The attached patch changes ActionErrors to ActionMessages.

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--errors.patch
          0.9 kB
          Emond Papegaaij

        Activity

          People

            niallp Niall Pemberton
            emond Emond Papegaaij
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: