title: How does the validate() method in Struts 2 get the result "input"?
body: <p>In Struts 2, <code>&quot;input&quot;</code> is returned when a check fails in the <code>validate()</code> method. I then map <code>&lt;result name=&quot;input&quot;&gt;</code> in <code>struts.xml</code> for the appropriate page.</p>
  <p><strong>I am just wondering how it gets the <code>&quot;input&quot;</code>, which is a <code>String</code> when the <code>validate()</code> method itself returns <code>void</code>?</strong></p>
  <pre><code>@Override
  public void validate() {
      // if checks here
  }
  </code></pre>
  <p>I would like to understand this concept.</p>