title: Struts2 : How do I deactivate the default message of FieldValidators
body: <p><br>
  I'm working on JAVA EE project using Struts2, which i have a jsp file with to fields name &amp; age:</p>
  
  <pre><code>&lt;s:form action="login" method="post"&gt;
        &lt;s:textfield name="name" label="Name" size="20" /&gt;
        &lt;s:textfield name="age" label="Age" size="20" /&gt;
        &lt;s:submit label="Submit" align="center" /&gt;
     &lt;/s:form&gt;
  </code></pre>
  
  <p>And there apropriat Action With annotation validators:</p>
  
  <pre><code>public class LoginAction extends ActionSupport {
      private String name;
      private int age;
  
      @Override
      public String execute() throws Exception {
          return SUCCESS;
      }
  
      @RequiredStringValidator(message = "String is empty", shortCircuit=true)
      public String getName() {
          return name;
      }
  
      public void setName(String name) {
          this.name = name;
      }
  
      @ConversionErrorFieldValidator(message = "Please enter a valid age", shortCircuit = true)
      @IntRangeFieldValidator(message = "Age must be in between 28 and 65",min = "29", max = "65",shortCircuit=true)
      public int getAge() {
          return age;
      }
  
      public void setAge(int age) {
          this.age = age;
      }
  }
  </code></pre>
  
  <p>Everything works fine, but when i enter a not valid age (a string for example "test") i get to messages, the one i set in the annotation <strong>"Please enter a valid age"</strong> and an other one by default <strong>"Invalid field value for field "age""</strong>, so my question is how can i desactive it the second message.</p>
  
  <p>Edit: This picture shows the messages i get.</p>
  
  <p><img src="https://i.stack.imgur.com/uqRYL.png" alt="enter image description here"></p>
  
  <p>Thank you.</p>