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

Subclassed forms share same parent instance even after creating new instance of all child form classes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.3.9
    • None
    • Core
    • None
    • N/A

    Description

      I have a Parent form class that extends ActionForm and has some common attributes that are shared by all the modules of the application. I have multiple child forms based on module with their own action handlers. The issue is that only one instance of the parent form class gets created and is shared across all child forms.

      Ex: ParentForm extends ActionForm and Now I have ModuleForm1 and ModuleForm2 which both extend ParentForm. In this scenario only one instance of ParentForm gets created and is shared for ModuleForm1 and ModuleForm2. Is this by design? Is there a way to avoid it?

      Attachments

        Activity

          People

            Unassigned Unassigned
            apoorva Apoorva Rais
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: