title: Struts2 validations issue
body: <p>I am trying to validate a form using the Struts2 validations annotation but it does not seem to work and does not show required mark on the labels.
      Here is my code:</p>
  
  <p><strong><code>login.jsp</code>:</strong>   </p>
  
  <pre><code> &lt;s:form  action="/Login"  validate = "true"&gt;    
  &lt;table&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;s:label theme=”simple” required="true"&gt;Username :&lt;/s:label&gt;&lt;/td&gt;
      &lt;td&gt;&lt;s:textfield name="userName" theme=”simple” /&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
      &lt;td&gt;&lt;s:label theme=”simple” required="true"&gt;Password :&lt;/s:label&gt;&lt;/td&gt;
      &lt;td&gt;&lt;s:textfield name="password" theme=”simple” /&gt;&lt;/td&gt;
    &lt;/tr&gt;
    &lt;tr&gt;
        &lt;td&gt;&lt;s:submit  value="Login" /&gt;&lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
  &lt;/s:form&gt;
  </code></pre>
  
  <p><strong><code>LoginAction.java</code>:</strong></p>
  
  <pre><code>public class LoginAction extends ActionSupport {
      private String userName;
      private String password;
  
      @Validations(requiredStrings={@RequiredStringValidator(type=ValidatorType.FIELD, message="User Name can ot be empty.", fieldName="userName")})
      public String getUserName() {
          return userName;
      }
      public void setUserName(String userName) {
          this.userName = userName;
      }
  
      @Validations(requiredStrings={@RequiredStringValidator(type=ValidatorType.FIELD, message="Password can ot be empty.", fieldName="password" )})
      public String getPassword() {
          return password;
      }
      public void setPassword(String password) {
          this.password = password;
      }
  
      public String execute()
      {
          return SUCCESS;
      }
  }
  </code></pre>
  
  <p><strong><code>struts.xml</code>:</strong></p>
  
  <pre><code>&lt;struts&gt;
      &lt;package name="demo" extends="struts-default"&gt;
          &lt;action name="*" class="mypkg.action.{0}Action"&gt;
              &lt;result name="success"&gt;/success.jsp&lt;/result&gt;
              &lt;result name="input"&gt;/index.jsp&lt;/result&gt;
          &lt;/action&gt;
      &lt;/package&gt;
  &lt;/struts&gt;
  </code></pre>
  
  <p>Can somebody help and notice if there is something wrong with my code?</p>