JSP instructions are used to set properties related to the entire JSP page, such as the encoding method and scripting language of the web page.

JSP directive syntax

The syntax format is as follows:

<%@ directive attribute="value" %>

The directive can have many attributes, which are in key-value pairs exist in the form and are separated by commas.

JSP directive example

The syntax format of the Page directive:

<%@ page attribute="value" %>

Include directive The syntax format is as follows:

<%@ include file="File relative url address" %>

The syntax of Taglib directive:

<%@ taglib uri="uri" prefix="prefixOfTag" %>