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

BeanValidatorForm cannot be saved in session

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.7
    • 1.2 Family
    • Core
    • None
    • Operating System: All
      Platform: All
    • 35488

    Description

      Looking at the code in RequestUtils...

      private static boolean canReuseActionForm(ActionForm instance, FormBeanConfig
      config)

      { ... }

      else

      { Class configClass = applicationClass(config.getType()); className = instance.getClass().getName(); canReuse = configClass.isAssignableFrom(instance.getClass()); formType = "ActionForm"; }

      ...
      }

      It seems as though a BeanValidatorForm will never be saved in session.
      The "configClass" is the POJO class defined in the struts config file and
      the "className" is "BeanValidatorForm", in which case the form is not an
      instance of my POJO. Thus, "canReuse" is false. Am i missing something?

      Attachments

        Activity

          People

            Unassigned Unassigned
            badorek_jeffrey_w@cat.com Jeff Badorek
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: