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

The method based Validation XML doesn't work while using codebehind.

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.0.11
    • None
    • Plugin - CodeBehind
    • None
    • WindowsXP Sp2, Jetty 6.1.5, Eclipse 3.3.1,JDK 1.6.0_UPDATE3

    Description

      I am now using struts 2.0.11 with codebehind plugin.
      while I post data from an input form to the serverside,for example, with namespace "/admin/profile" and action class EntityAction using action "entity!save",The XML validation file is invalid.It only work with the file name EntityAction-validation.xml, and so I can't validate input data on method scope.Someone said the xml file's name should be EntityAction-entity!save-validation.xml and it worked, I have tried but failed again.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            lukaszlenart Lukasz Lenart
            kunzheng Kun,Zheng
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment