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

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

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.3.9
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None
    • Environment:
      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

            • Assignee:
              Unassigned
              Reporter:
              apoorva Apoorva Rais

              Dates

              • Created:
                Updated:

                Issue deployment