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

Provide a way to share validation.xml rules with ModelDriven

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 3.0
    • Component/s: None
    • Labels:
      None

      Description

      In Short:
      "ActionA" and "ActionB" both implement ModelDriven to expose an instance of "ModelClass" on the value stack.
      Some properties might be set on ModelClass. "ActionA" and "ActionB" have the same validation rules for properties of ModelClass.

      => It would be useful to share a set of validation rules in ModelClass-validation.xml.

      Does XWork allow validating other objects than actions ?

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              samokk Sami Dalouche
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: