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

Cancellation does not work as intended without form

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.1.0
    • 1.4.0
    • Core
    • None
    • Operating System: All
      Platform: All
    • 22357

    Description

      If the action mapping does not contain a form bean name, e.g.:

      <action path="/this/action"
      type="action.class.name"/>

      using isCancelled() in that action will always return false. The code in
      org.apache.struts.action.RequestProcessor.processPopulate returns if the form
      is null before setting the Globals.CANCEL_KEY attribute.

      It seems to me that since a request parameter is used to detect the cancel
      button (the return request.getParameter(Constants.CANCEL_KEY) != null line),
      the setting of the request attribute should not depend on whether the action
      mapping uses a form.

      Attachments

        Activity

          People

            pbenedict Paul Benedict
            patman_coda@yahoo.com Patrick Dumontel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: