title: Struts2, best practice for using method={1}
body: <p>I'm new to Struts 2 and I've come across this syntax (recommended in the tutorial).</p>
  
  <pre><code>&lt;action name="Register_*" method="{1}" class="Register"&gt;
      &lt;result name="input"&gt;/member/Register.jsp&lt;/result&gt;
      &lt;result type="redirectAction"&gt;Menu&lt;/result&gt;
  &lt;/action&gt;
  </code></pre>
  
  <p>I understand that it calls Register.{1} method. The problem is a user could put in another (random) value and cause a 500 error (which would correctly be logged as an error).</p>
  
  <p>How can this be prevented?</p>