From the course: Spring: Spring MVC
Unlock the full course today
Join today to access over 24,200 courses taught by industry experts.
Redirecting outside an application
From the course: Spring: Spring MVC
Redirecting outside an application
- [Instructor] When we did the complete interceptors flow, we had employed the concept of forwarding. In this quick video, we are going to also explore the concept of redirection. So forwarding is trying to forward the control to a resource within your context. But if you want to go outside your application, let's say you are in HPlus right now, and you want to go to LinkedIn, or some other website, then how do you redirect your control to those other websites? That's what we'll do now. Basically, in the application, let's build this again, and find out where we are going to do redirection in HPlus. So I'm just going to open the home, and this link that you see, the one that is pointing to the LinkedIn hyperlink, that's the link we want to work out. When we click here, we should be able to go to LinkedIn. That is called redirection. You're leaving your application and going to a completely different context, completely…
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)
-
-