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

JSP directives: Include and taglib

From the course: Java EE: Servlets and JavaServer Pages (JSP)

Start my 1-month free trial

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,…

Contents