Directive Elements
Directive elements are used to specify information about the page itself, especially information that doesn’t differ between requests for the page. The classic general directive syntax is:
<%@directiveName
attr1
="value1
"attr2
="value2
" %>
The following XML equivalent syntax must be used in a JSP Document (a JSP page written in XML syntax) and can optionally be used as an alternative to the classic syntax in a regular JSP page:
<jsp:directive.directiveName
attr1
="value1
"attr2
="value2
" />
Only the classic syntax is shown in the detailed sections that follow.
The attribute values can be enclosed with single quotes instead of double quotes. The directive name and all attribute names are case-sensitive.
Get JavaServer Pages, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.