title: Spring MVC controller's handleRequestInternal method doesn't get called - basic example problem
body: <p>I'm a newbie in spring MVC framework. I'm trying to write a simple controller (extends from AbstractController) and want to return a simple view (home.jsp) but seems that the controller's handleRequestInternal() is never called. I'm giving my code below. Any help would be highly appreciated.</p>
  
  <p>web.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app version="2.4"
           xmlns="hiperlink is trimmed "
           xmlns:xsi="hiperlink is trimmed "
           xsi:schemaLocation="hiperlink is trimmed " &gt;
  
      &lt;servlet&gt;
          &lt;servlet-name&gt;students&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;students&lt;/servlet-name&gt;
          &lt;url-pattern&gt;/students/*&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  
  
      &lt;filter&gt;
          &lt;filter-name&gt;sitemesh&lt;/filter-name&gt;
          &lt;filter-class&gt;com.opensymphony.sitemesh.webapp.SiteMeshFilter&lt;/filter-class&gt;
      &lt;/filter&gt;
  
      &lt;filter-mapping&gt;
          &lt;filter-name&gt;sitemesh&lt;/filter-name&gt;
          &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
      &lt;/filter-mapping&gt;
  
      &lt;welcome-file-list&gt;
          &lt;welcome-file&gt;index.jsp&lt;/welcome-file&gt;
      &lt;/welcome-file-list&gt;
  
      &lt;jsp-config&gt;
          &lt;taglib&gt;
              &lt;taglib-uri&gt;/spring&lt;/taglib-uri&gt;
              &lt;taglib-location&gt;/WEB-INF/spring-form.tld&lt;/taglib-location&gt;
          &lt;/taglib&gt;
  
          &lt;taglib&gt;
              &lt;taglib-uri&gt;hiperlink is trimmed java.sun.com/jsp/jstl/core&lt;/taglib-uri&gt;
              &lt;taglib-location&gt;/WEB-INF/c.tld&lt;/taglib-location&gt;
          &lt;/taglib&gt;
  
          &lt;taglib&gt;
              &lt;taglib-uri&gt;hiperlink is trimmed java.sun.com/jsp/jstl/fmt&lt;/taglib-uri&gt;
              &lt;taglib-location&gt;/WEB-INF/fmt.tld&lt;/taglib-location&gt;
          &lt;/taglib&gt;
      &lt;/jsp-config&gt;
  
  &lt;/web-app&gt;
  </code></pre>
  
  <p>students-servlet.xml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  
  &lt;beans xmlns="hiperlink is trimmed "
         xmlns:xsi="hiperlink is trimmed "       xmlns:context="hiperlink is trimmed" xmlns:jaxws="hiperlink is trimmed "
         xsi:schemaLocation="hiperlink is trimmed "&gt;
  
        &lt;bean id="handlerMapping"
            class="org.springframework.web.servlet.handler.BeanNameUrlHandlerMapping"/&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;bean id="myService" class="net.ochinto.student.service.MiscellaneousService"/&gt;
  
      &lt;bean name="/home.htm" class="net.ochinto.student.web.HomePageController"&gt;
          &lt;property name="myService" ref="myService"/&gt;
      &lt;/bean&gt;
  
  &lt;/beans&gt;
  </code></pre>
  
  <p>HomePageController.java</p>
  
  <pre><code>public class HomePageController extends AbstractController {
      private static final Logger log = LoggerFactory.getLogger(HomePageController.class);
  
      public HomePageController() {
          log.debug("HomePageController constructor()");
      }
  
      protected ModelAndView handleRequestInternal(
              HttpServletRequest request, HttpServletResponse response)
              throws Exception {
  
          log.debug("HomePageController handleRequestInternal()");
  
          List&lt;Student&gt; students = myService.getStudentList();
          return new ModelAndView("home", "students", students);
      }
  
      private MiscellaneousService myService;
  
      public void setMyService(MiscellaneousService myService) {
          log.debug("HomePageController setMyService() - start");
          this.myService = myService;
          log.debug("HomePageController setMyService() - end");
      }
  }
  </code></pre>
  
  <p>welcome page is ok but when I write /students/home.htm 404 is returned! Please help.</p>