From the course: Spring: Spring MVC
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Define themes and theme resolver
- [Instructor] Let's look at how do you resolve themes inside your Spring MVC application. So the first step is you have to define two separate themes. Let's just come back to IDE and understand one thing. So under your resources folder, you have a static folder, and inside that you have two folders, one for CSS and the other is for images. If you go out the style CSS, this is going to describe the entire look and feel of your application. So this is the one that's enabled by default, because this is the only one. Now what we have to do is you have to define two separate styles, so what I'll do, I'll just copy this file, and paste that on the same CSS folder, because all the CSS static resources have to be picked up from that file, and let me just name it stylesCSS. And let's change few things here, so maybe I will change the font size for the entire HTML element, let's make it about 45.5, and let's also have one em tag whose…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
-
-
(Locked)
Introduction to interceptors3m 28s
-
(Locked)
Built-in and custom interceptors2m 45s
-
(Locked)
Add interceptor class5m 45s
-
(Locked)
Register interceptors3m 17s
-
(Locked)
Request and session attributes1m 57s
-
(Locked)
Save and get SessionAttributes demo6m 47s
-
(Locked)
Test session flow and implement forwarding7m 37s
-
(Locked)
End HttpSession8m 33s
-
(Locked)
Redirecting outside an application3m 40s
-
(Locked)
Introduction to themes1m 48s
-
(Locked)
Define themes and theme resolver4m 18s
-
(Locked)
Define ThemeChangeInterceptor6m 38s
-
(Locked)
Pick themes on JSPs2m 37s
-
(Locked)
Introduction to l10n and i18n3m
-
(Locked)
Automatic locale resolution demo9m 55s
-
(Locked)
CookieLocaleResolver and interceptor for l10n and i18n5m 37s
-
(Locked)
-
-