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

FileUploadInterceptor not using internationalized error message

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • WW 2.2.2
    • None
    • None

    Description

      FileUploadInterceptor not using internationalized error message, in acceptFile(...) method when File is null, it should use webwork.messages.error.uploading, as listed in javadoc.

      validation.addFieldError(inputName, "Could not upload file");

      should, i guess, instead be,

      validation.addFieldError(inputName,
      getTextMessage("webwork.messages.error.uploading",
      new Object[]

      { "Could not upload file with input name ["+inputName+"]" }

      ,
      locale));

      Attachments

        Activity

          People

            mrdon Donald J. Brown
            tm_jee tm_jee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: