Chapter 15. JSP Directives
In this chapter
The Java Server Pages specification contains four different types of tags that start with
<%
. The plain <%
tag begins a block of Java code. The <%!
tag begins a declaration of class attributes or methods. The <%=
tag inserts the result of a Java expression in the output. The final <%
tag is the directive tag, which is
<%@
. There are currently three directives in the JSP specification:
page
include
taglib
The page
directive is a catchall for various page options that don't really warrant their own directive. The include
directive allows you to include other files at compile time as opposed to runtime. The taglib
lets you include an external library ...
Get Special Edition Using Java™ Server Pages and Servlets 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.