styles/style.css No mapping found for HTTP request

Posted by sonx on Stack Overflow See other posts from Stack Overflow or by sonx
Published on 2011-01-03T09:51:09Z Indexed on 2011/01/03 9:53 UTC
Read the original article Hit count: 250

Filed under:

Hi, it seems my styles folder added under the web folder is not getting mapped by dispatcher servlet on my JSP's. I get

WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/onlinebasket/styles/style.css] in DispatcherServlet with name 'onlinebasket'

here's my dispatcher servlet

<servlet-mapping>
    <servlet-name>onlinebasket</servlet-name>
    <url-pattern>/</url-pattern>
</servlet-mapping>

and i this is my CSS URL on JSP

<link rel="stylesheet" href="<c:url value="/styles/sytle.css"/>" type="text/css"/>

This folder is on the web folder.

© Stack Overflow or respective owner

Related posts about css