Category: Spring MVC
Spring MVC + Log4j example
In this tutorial, we will show you how to use the log4j framework to do the logging in a Spring MVC web application. Technologies and tools used :Log4j 1.2.17, Spring 4.1.6.RELEASE, Maven 3, Tomcat 6, Eclipse Kepler 4.3
Spring MVC – How to include JS or CSS files in a JSP page
In this tutorial, we will show you how to include static resources like JavaScript or CSS in a JSP page. Summary steps : 1 – Put static resources like cs, js or images into this folder webapp\resources, 2 – Create a Spring mvc:resources mapping, 3 – Include in JSP page via JSTL tag c:url or Spring tag spring:url