Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3715

Allow for dynamic validation xml files, by building validator cache based on action AND context

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.1.8
    • 6.1.1
    • XML Validators
    • None
    • Patch

    Description

      In order to be able to call from an action's validate method:

      validatorManager.validate(this, "my-dynamic-context");

      xwork's AnnotationValidatorManager should build its validator's key cache based on both clazz (action) AND context. This allows to decide the xml validation file dynamically.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jogaco J. Garcia
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: