December 2002
Intermediate to advanced
288 pages
9h 46m
English
Besides
shared content, an include directive can also include a file that
contains shared page attributes, such as a page
directive with an errorPage attribute and
taglib directives for all libraries used in the
application:
<%@ page errorPage="/shared/error.jsp" %> <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt" %> <%@ taglib prefix="ora" uri="orataglib" %>
This way, global changes can be made in one place—for instance,
changing a taglib directive’s
uri attribute when upgrading to a later version.