Browser can't access/find relative resources like CSS, images and links when calling a Servlet which forwards to a JSP

前端 未结 9 1339
小蘑菇
小蘑菇 2020-11-21 05:43

I\'m having trouble with loading CSS and images and creating links to other pages when I have a servlet forward to a JSP. Specifically, when I set my

9条回答
  •  囚心锁ツ
    2020-11-21 06:09

    I faced similar issue with Spring MVC application. I used < mvc:resources > tag to resolve this issue.

    Please find the following link having more details.

    http://www.mkyong.com/spring-mvc/spring-mvc-how-to-include-js-or-css-files-in-a-jsp-page/

提交回复
热议问题