JSP can't find stylesheet

前端 未结 3 501
北恋
北恋 2021-01-24 11:17

Hierarchy:
WEB-INF/jsp
WEB-INF/styles

I link stylesheet in my JSP file, which is located in WEB-INF/jsp:

 

        
3条回答
  •  隐瞒了意图╮
    2021-01-24 11:41

    By default Tomcat will not serve static files from WEB-INF/, move your css up a level so the css is "./styles/some.css". Since you have your JSPs in WEB-INF/jsp I assume you are using JSF or some other facading framework?

提交回复
热议问题