title: RestEasy - Parameters Binding - Validation and Errors - EJB
body: <p>Lets say I define a POJO with parameters that is passed to a REST call</p>
  
  <pre><code> class MyVO {
      @NotNull
      @PathParam("name")
      private String name;
  
      @NotNull
      @PathParam("age")
      private Integer age;
      // getters and setters
   }
  
   public class RESTclass {
     public postData( @Form MyVO vo ) {
     }
   }
  </code></pre>
  
  <p>It automatically binds the objects in MyVO. But where do I get the validation errors?
  Does it trigger the validation during binding? If not, how to trigger the validations?</p>
  
  <p>Spring does all these well. It has BindingResult parameter that you can inject. 
  What is the equivalent here?</p>
  
  <p>Any idea?</p>