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 %> 


<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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.