Skip to content
Mkyong.com
Mkyong.com
  • Development Service
  • Spring Boot
  • Java 8
  • Contact

static resources

Spring MVC – How to include JS or CSS files in a JSP page

June 9, 2015November 19, 2013 by mkyong

In this tutorial, we will show you how to include static resources like JavaScript or CSS in a JSP page. Summary steps : Put static resources like cs, js or images into this folder webapp\resources Create a Spring mvc:resources mapping Include in JSP page via JSTL tag c:url or Spring tag spring:url P.S This project …

Read more

Categories spring mvc Tags spring mvc, static resources 78 Comments

Mkyong.com has provided Java and Spring tutorials, guides, and code snippets since 2008. All published articles are simple, easy to understand, and well-tested in our development environment.

Mkyong.com licenses all source code on this website under the MIT License.

Tools
  • Spring Framework
  • Quarkus Framework
  • Micronaut Framework
  • Oracle Java JDK
  • Eclipse Temurin JDK
  • OpenJDK JDK
  • Hibernate ORM
  • Maven Build Tool
  • Gradle Build Tool
  • Tomcat Application Server
  • Docker
Links
  • Spring Guides
  • Docker Hub
  • Maven Central
  • Keep A Changlog
  • Semantic Versioning
  • Hugging Face - Qwen
  • Martin Fowler
About
  • About Us
  • Code License
  • Privacy Policy
  • Terms Of Use
  • Contact Us
© 2026 Mkyong.com - Build with Love.