What are JSP Directives?



A JSP directive affects the overall structure of the servlet class. It usually has the following form −

<%@ directive attribute="value" %>

There are three types of directive tag −

S.No. Directive & Description
1 <%@ page ... %>
Defines page-dependent attributes, such as scripting language, error page, and buffering requirements.
2 <%@ include ... %>
Includes a file during the translation phase.
3 <%@ taglib ... %>
Declares a tag library, containing custom actions, used in the page
Updated on: 2019-07-30T22:30:25+05:30

257 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements