6.2. JSP Directives

Just as there were three types of JSP scripting elements, there are also three types of JSP directives. The directives are the page directive, the include directive, and the taglib directive. The JSP directive tag format is:

<%@ directive attrname="attrvalue" [...] %>

Directive names and attribute names are all case-sensitive; all are predominantly lowercase with the occasional infix capitalization for readability. There may be multiple attribute name/value pairs specified. The permitted attributes vary by directive, and are covered in the sections that follow.

6.2.1. The page Directive

The page directive gives you a way to customize the servlet that is being generated in several ways, such as controlling what classes are ...

Get J2EE™ and JAX™: Developing Web Applications and Web Services 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.