title: struts2 validation framework just print error message to console, not redirecting to input jsp
body: <p>I am using struts2 validation framework, I just want to validate test() method in TestAction class, here are my code and configuration:</p>
  
  <pre><code>@Namespace(value = "/")
  @Result(name="input", location="test_input.jsp")
  public class TestAction
  {
  private String  name;
  
  public String getName()
  {
      return name;
  }
  
  public void setName(String name)
  {
      this.name = name;
  }
  
  @Action(value = "test", results = { @Result(name = "success", location = "test.jsp")})
  public String test() throws Exception
  {
      return "success";
  }
  
  @Action(value = "show", results = { @Result(name = "success", location = "test_input.jsp")})
  public String show() throws Exception
  {
      return "success";
  }
  }
  </code></pre>
  
  <p>test_input.jsp:</p>
  
  <pre><code> &lt;body&gt;
  &lt;s:fielderror&gt;&lt;/s:fielderror&gt;
  &lt;s:form action="test.do" theme="xhtml"&gt;
      &lt;s:textfield name="name" label="name"&gt;&lt;/s:textfield&gt;
      &lt;s:submit value="submit"&gt;&lt;/s:submit&gt;
  &lt;/s:form&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>test.jsp:</p>
  
  <pre><code>&lt;body&gt;
  success
  &lt;s:debug&gt;&lt;/s:debug&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>TestAction-test-validation.xml:</p>
  
  <pre><code>&lt;validators&gt;
  &lt;field name="name"&gt;
      &lt;field-validator type="requiredstring"&gt;
          &lt;message&gt;name is required.&lt;/message&gt;
      &lt;/field-validator&gt;
  &lt;/field&gt;
  &lt;/validators&gt;
  </code></pre>
  
  <p>TestAction.class and TestAction-test-validation.xml are in the same package.</p>
  
  <p>struts.xml:</p>
  
  <pre><code>&lt;struts&gt;
  
  &lt;constant name="struts.enable.DynamicMethodInvocation" value="true" /&gt;
  &lt;constant name="struts.devMode" value="true" /&gt;
  &lt;constant name="struts.ui.theme" value="simple" /&gt;
  &lt;constant name="struts.ognl.allowStaticMethodAccess" value="true" /&gt;
  
  &lt;constant name="struts.action.extension" value="do" /&gt;
  &lt;constant name="struts.objectFactory" value="spring" /&gt;
  &lt;constant name="struts.convention.result.path" value="/" /&gt;
  
  
  &lt;include file="struts-default.xml"&gt;&lt;/include&gt;
  
  &lt;package name="default" namespace="/" extends="struts-default"&gt;
      &lt;default-interceptor-ref name="defaultStack"&gt;&lt;/default-interceptor-ref&gt;
      &lt;global-results&gt;
          &lt;result name="error"&gt;error.jsp&lt;/result&gt;
      &lt;/global-results&gt;
  
      &lt;global-exception-mappings&gt;
          &lt;exception-mapping exception="java.lang.Exception"
              result="error" /&gt;
      &lt;/global-exception-mappings&gt;
  
  &lt;/package&gt;
  &lt;/struts&gt;
  </code></pre>
  
  <p>web.xml:</p>
  
  <pre><code>&lt;filter&gt;
      &lt;filter-name&gt;struts2&lt;/filter-name&gt;
      &lt;filter-class&gt;org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter&lt;/filter-class&gt;
  &lt;/filter&gt;
  &lt;filter-mapping&gt;
      &lt;filter-name&gt;struts2&lt;/filter-name&gt;
      &lt;url-pattern&gt;*.do&lt;/url-pattern&gt;
      &lt;dispatcher&gt;REQUEST&lt;/dispatcher&gt;
      &lt;dispatcher&gt;FORWARD&lt;/dispatcher&gt;
      &lt;dispatcher&gt;INCLUDE&lt;/dispatcher&gt;
  &lt;/filter-mapping&gt;
  </code></pre>
  
  <p>I begin to visit show.do by browser, an input and button appears, I don't type anything in input, just directly click the button, the pages goes to test.do and show 'success' in the page, and I look at the 'debug' content, no any error message in it.
  but the strange thing is that: 
   [ERROR] Validation error for name:name is required. 
  the above message is printed in eclipse console (I start tomcat in eclipse)
  the error message means TestAction-test-validation.xml must be executed by struts2, but why it doesn't redirect to test_input.jsp? I already define an input result.</p>
  
  <p>Is there something wrong in my configuration or I lack other configuration ?</p>
  
  <p>Any thoughts?</p>