From the course: Java EE: Servlets and JavaServer Pages (JSP)
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
JSP directives: Include and taglib
From the course: Java EE: Servlets and JavaServer Pages (JSP)
JSP directives: Include and taglib
- [Instructor] Now let's take a look at the include directive of JSP. This is basically used to include any JSP resources in the current JSP, that's what this is for. It looks like this, there's an angle bracket, a percentage sign, an at rate symbol, which denotes that it is a directive. After that, the name of the directive, which is include. Like the page directive, if you want to pass any extra information to this directive, it will be in the form of attributes. Now why do we want do use this, where is this used? In a typical web application, your software's ticketed web pages could pull out data from multiple sources. You may have a lot of screens in your application. Let's say your screen is this. This screen can actually be divided into components. The first one is the Header component, which has the logo of the organization and its name. Then you have the Menu, which gives you a lot of options to traverse across the application. Then you have one more part, which is the Footer,…
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)
Understanding JSP and its features4m 57s
-
(Locked)
JSP elements: Scriptlet, declaration, and expression4m 34s
-
(Locked)
JSP elements: Scriptlet and expression9m 26s
-
(Locked)
JSP elements: Declaration4m 3s
-
(Locked)
Understanding the JSP life cycle5m 54s
-
(Locked)
JSP directives: Page8m 52s
-
(Locked)
JSP directives: Include and taglib5m 23s
-
(Locked)
Understanding implicit objects in JSP5m 12s
-
(Locked)
-
-
-
-
-