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

REST & Validation

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.2
    • 2.5
    • None
    • None

    Description

      When implementing REST-like controllers as per REST plugin guidelines, I have multiple methods in the same class e.g. save and update. If I require validation I can annotate each method with validation annotations and enable validateAnnotatedMethodOnly.

      The issue is that I can only have one 'input' result. Validation failure on either of these methods will lead to the same page. The issue is described here also - http://www.nabble.com/forum/ViewPost.jtp?post=19230629&framed=y.

      It would be nice if there was an validation annotation to set the result name via annotations on validation failure (similiar to worflow interceptor).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              alvins Alvin Singh
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: