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

s:file generates input tag with "value" attribute

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3.x, 2.5
    • Fix Version/s: 2.5.12
    • Component/s: Core Tags
    • Labels:
      None

      Description

      <s:file> tag generates HTML tag like:
      <input type="file" ... value="" .../>

      It is valid as long as the empty "value" value was specified, but HTML5 standard says:
      "The element's value attribute must be omitted."
      https://www.w3.org/TR/html5/forms.html#file-upload-state-(type=file)

        Attachments

          Activity

            People

            • Assignee:
              aleksandr-m Aleksandr Mashchenko
              Reporter:
              kzmi Iwasa Kazmi
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: