JSP directive


  Translation results:

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 directivesyntax

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 directiveexample

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" %>

Popular Recommendations

Home

Videos

Q&A