title: Some doubts about request mapping in Spring MVC
body: <p>I am studying for Spring MVC and on the study material I have the following question on which I have some doubts:</p>
  
  <blockquote>
    <p>Assuming a web application context name of <strong>"rewardsonline"</strong>, a
    servlet mapping of <strong>/admin/*</strong>, and an incoming URL of
    "<strong>"rewardsonline/admin/accounts/show"</strong> what is the URL used from
    Spring MVC request-mapping purpose?</p>
    
    <ul>
    <li><p><strong>/rewardsonline/admin/accounts/show</strong></p></li>
    <li><p><strong>/admin/accounts/show</strong></p></li>
    <li><p><strong>/accounts/show</strong></p></li>
    <li><p><strong>/show</strong></p></li>
    </ul>
  </blockquote>
  
  <p>I think that the correct answer is <strong>/accounts/show</strong> and I have reason in the following way: <strong>rewardsonline</strong> is the applcation name (the <strong>application context name</strong> is the application name**.</p>
  
  <p>Whereas <strong>/admin/accounts/</strong> is the <strong>servlet mapping</strong> and finnaly <strong>show</strong> is the request mapping (mapped on a specific method). </p>
  
  <p>Is it reasoning correct or am I missing something?</p>