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

html:cancel doesn't work when form is enctype='multipart/form-data'

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Nightly Build
    • Fix Version/s: 1.0.0
    • Component/s: Core
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: PC
    • Bugzilla Id:
      1706

      Description

      Apparently request.getParameter(Constants.CANCEL_PROPERTY) doesn't work when
      posting mulipart/form-data so using <html:cancel/> to submit a form is ignored.
      This means that the form.validate() function isn't skipped on the form.

      Presumably Action.isCancelled() won't work either unless the fix puts the
      CANCEL_PROPERTY in the request before the form is passed to the action.

      This has been posted to the newsgroups before and someone was going to fix it
      but it doesn't appear to work yet, hence the bug report.

      The docs for html:cancel and html:file don't mention any limitations along
      these lines.

        Attachments

          Activity

            People

            • Assignee:
              mschachter@bluestone.com Mike Schachter
              Reporter:
              hdeadman Hal Deadman
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: