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

Provide a way to share validation.xml rules with ModelDriven

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • None
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: