Directive Elements

Directive elements specify information about the page itself; information that doesn’t differ between requests for the page. Examples are the scripting language used in the page, whether or not session tracking is required, and the name of the page that will be used to report any errors.

The general directive syntax is:

<%@ directiveName attr1="value1" attr2="value2" %>

You can use single quotes instead of double quotes around the attribute values. The directive name and all attribute names are case-sensitive.

Get JavaServer Pages Pocket Reference 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.