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

DynaActionForm properties get initialized twice.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • Nightly Build
    • Future
    • Core
    • None
    • Operating System: other
      Platform: Other
    • 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

            Unassigned Unassigned
            areus Antoni Reus
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: