title: How to change the default mapping rules of struts-rest-pulgin
body: <p>I'm using struts2 + convention + rest to build my Web project. There are many jsp files in the content folder. So I want to classify them by folders. For example, I want to put <code>user.jsp</code>, <code>user-list.jsp</code> and <code>user-edit.jsp</code> in <code>\content\user</code> folder. And I must add <code>Namespace</code> annotation to <code>UserController</code>, as follow:</p>
  
  <pre><code>@Namespace("/user")
  public class UserController
  </code></pre>
  
  <p>But if I do that, the url to access <code>user.jsp</code> changes to <code>localhost:8080\projectName\user\user</code>. I don't like so much <code>user</code> int the url. </p>
  
  <p>So my question is, can I change the default mapping rule to access <code>user.jsp</code> by <code>localhost:8080\projectName\user</code>? If I can't change it, then how to manage so much jsp files in <code>\WEB-INF\content</code> folder?</p>
  
  <p>Any help will be greatly appreciated.</p>