title: url-pattern not working in spring mvc application
body: <p>I had made a basic application on spring mvc framework.</p>
  
  <p>when i write the following url pattern on web.xml:</p>
  
  <pre><code>&lt;servlet-mapping&gt;
          &lt;servlet-name&gt;springxml&lt;/servlet-name&gt;
          &lt;url-pattern&gt;*.jsp&lt;/url-pattern&gt;
    &lt;/servlet-mapping&gt;
  </code></pre>
  
  <p>and runs the application (using ../SpringMVCXML/welcome.jsp) , it displays HTTP Status 404 error.</p>
  
  <p>When I changes the url pattern other than .jsp, application is running fine.</p>
  
  <p>Why Application is not running on <strong>.jsp</strong> url pattern?</p>
  
  <p>I had used following java class act as controller.</p>
  
  <pre><code>@Controller
  @RequestMapping(value="/welcome",method=RequestMethod.GET)
  public class ControllerHello {
      @RequestMapping(method=RequestMethod.GET)
      public String printHello(ModelMap map) {
          map.addAttribute("message", "Hello Spring MVC Framework");
          return "hello";
      }
  }
  </code></pre>
  
  <p>Also, my springxml-servlet.xml had following code:</p>
  
  <pre><code>&lt;bean  class="org.springframework.web.servlet.view.InternalResourceViewResolver"&gt;
          &lt;property name="prefix" value="/WEB-INF/jsp/"/&gt;
          &lt;property name="suffix" value=".jsp"/&gt;
      &lt;/bean&gt;
  </code></pre>