title: Use of multiple "mvc:resources" tag in spring mvc
body: <p>I am trying to serve static resources using new mvc tag library introduced in spring v3.0.4.</p>
  
  <p>My spring config looks like this</p>
  
  <pre><code>   &lt;mvc:resources mapping="/scripts/**" location="/scripts/" /&gt;
     &lt;mvc:resources mapping="/styles/**" location="/styles/" /&gt;
     &lt;mvc:resources mapping="/images/**" location="/images/" /&gt;
  </code></pre>
  
  <p>But It is sending request for /styles/** to DispatcherController. I am getting blank page with this log.</p>
  
  <pre><code>2011-03-05 21:05:11,923 DEBUG [org.springframework.web.servlet.DispatcherServlet] - &lt;DispatcherServlet with name 'template' processing GET r
  equest for [/template/styles/admin/struts-menu/menuExpandable.css]&gt;
  
  2011-03-05 21:05:11,923 DEBUG [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] - &lt;Matching patterns for request [/styles/ad
  min/struts-menu/menuExpandable.css] are [/styles/**]&gt;
  
  2011-03-05 21:05:11,923 DEBUG [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] - &lt;URI Template variables for request [/styl
  es/admin/struts-menu/menuExpandable.css] are {}&gt;
  2011-03-05 21:05:11,923 DEBUG [org.springframework.web.servlet.handler.SimpleUrlHandlerMapping] - &lt;Mapping [/styles/admin/struts-menu/menuEx
  pandable.css] to HandlerExecutionChain with handler [org.springframework.web.servlet.resource.ResourceHttpRequestHandler@1ce0390] and 3 inte
  rceptors&gt;
  2011-03-05 21:05:11,923 DEBUG [org.springframework.web.servlet.DispatcherServlet] - &lt;Last-Modified value for [/template/styles/admin/struts-
  menu/menuExpandable.css] is: -1&gt;
  2011-03-05 21:05:11,923 DEBUG [org.springframework.web.servlet.resource.ResourceHttpRequestHandler] - &lt;Trying relative path [admin/struts-me
  nu/menuExpandable.css] against base location: ServletContext resource [/styles/]&gt;
  
  2011-03-05 21:05:11,923 DEBUG [org.springframework.web.servlet.resource.ResourceHttpRequestHandler] - &lt;Found matching resource: ServletConte
  xt resource [/styles/admin/struts-menu/menuExpandable.css]&gt;
  
  2011-03-05 21:05:11,923 DEBUG [org.springframework.web.servlet.resource.ResourceHttpRequestHandler] - &lt;Determined media type [text/css] for
  ServletContext resource [/styles/admin/struts-menu/menuExpandable.css]&gt;
  2011-03-05 21:05:11,923 DEBUG [org.springframework.web.servlet.resource.ResourceHttpRequestHandler] - &lt;Resource not modified - returning 304
  &gt;
  
  2011-03-05 21:05:11,923 DEBUG [com......template.web.admin.interceptors.SideMenuAdminInterceptorV2] - &lt;Entering postHandle()&gt;
  2011-03-05 21:05:11,923 INFO [com.....template.web.admin.interceptors.SideMenuAdminInterceptorV2] - &lt;ServletPath : /styles/admin/str
  uts-menu/menuExpandable.css, ContextPath : /template, PathTranslated : null&gt;
  2011-03-05 21:05:11,923 DEBUG [org.springframework.web.servlet.DispatcherServlet] - &lt;Null ModelAndView returned to DispatcherServlet with na
  me 'template': assuming HandlerAdapter completed request handling&gt;
  2011-03-05 21:05:11,923 DEBUG [org.springframework.web.servlet.DispatcherServlet] - &lt;Successfully completed request&gt;
  </code></pre>