title: Spring MVC No handler found
body: <p>I'm newbie to spring mvc and trying to develop a very basic login webapp. I get the below error while running the project. I have tried almost everything and could not fix this error since last two weeks. Please can someone help me. </p>
  
  <pre><code>May 21, 2013 2:37:12 PM org.springframework.web.servlet.DispatcherServlet noHandlerFound
  WARNING: No mapping found for HTTP request with URI [/SpringWeb/WEB-INF/jsp/loginnn.jsp] in DispatcherServlet with name 'spring'
  </code></pre>
  
  <p>My jsp pages resides under WEB-INF/jsp. The method loginpage in my controller is gettting invoked but the view name is not being rendered and resolved. Greatly appreciate your help.</p>
  
  <p><strong>web.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"&gt;
  &lt;display-name&gt;testspring&lt;/display-name&gt;
  &lt;servlet&gt;
  &lt;servlet-name&gt;frontcontrol&lt;/servlet-name&gt;
  &lt;servlet-class&gt;org.springframework.web.servlet.DispatcherServlet&lt;/servlet-class&gt;
  &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
  &lt;/servlet&gt;
  &lt;servlet-mapping&gt;
  &lt;servlet-name&gt;frontcontrol&lt;/servlet-name&gt;
  &lt;url-pattern&gt;/&lt;/url-pattern&gt;
  &lt;/servlet-mapping&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p><strong>frontcontrol-servlet.xml</strong></p>
  
  <pre><code>&lt;context:component-scan base-package ="com.shell.spring.testspringapp"&gt;
  &lt;/context:component-scan&gt;
  &lt;bean id ="viewResolver"
  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;
  
  &lt;/beans&gt;
  </code></pre>
  
  <p><strong>Controller class</strong></p>
  
  <pre><code>@Controller
  
  public class Firstcontrol {
  
  @RequestMapping(value="/")
  public ModelAndView invokeme(Model m)
  {
  
  ModelAndView mav=new ModelAndView();
  mav.setViewName("result");
  System.out.println("In method");
  return mav;
  }
  
  @RequestMapping(value="/submit" ,method=RequestMethod.GET)
  public String submit(Model m)
  {
  System.out.println("In submitmethod");
  return "submit";
  }
  }
  </code></pre>