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

DynaActionForm properties get initialized twice.

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: Nightly Build
    • Fix Version/s: Future
    • Component/s: Core
    • Labels:
      None
    • Environment:
      Operating System: other
      Platform: Other
    • Bugzilla Id:
      22929

      Description

      To create a DynaActionForm i RequestUtils.createActionForm it does:

      <snip>
      DynaActionFormClass dynaClass =
      DynaActionFormClass.createDynaActionFormClass(config);
      instance = (ActionForm) dynaClass.newInstance();
      ((DynaActionForm) instance).initialize(mapping);
      </snip>

      dynaClass.newInstance() creates an instance of DynaActionForm and sets its
      initial properties, after that DynaActionForm.initizalize(mapping) sets the
      initial properties again!.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              areus Antoni Reus

              Dates

              • Created:
                Updated:

                Issue deployment