Directive Tag

A directive tag is a tag embedded in the JSP page that can be used by the developer to issue directives to the JSP compiler. The directive tag affects the way the JSP file is compiled into a servlet by the JSP compiler. Directive tags must always be present at the beginning of the JSP.

Structure of the Directive Tag

JSP directive tags can be written in two ways:

<%@ tagname attributename=attributevalue attributename=attributevalue %> 

or

<jsp: directive.tagname attributename=attributevalue
							attributename=attributevalue />

The second example is the XML representation of the JSP directive tag. A directive tag consists of a tag name and its attributes and attribute values.

Available Directive Tags

There are three directive tags available ...

Get Sams Teach Yourself BEA WebLogic Server 7.0™ in 21 Days 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.