Review: The JSP page Directive:
Structuring Generated Servlets
The import attribute
Changes the packages imported by the servlet that results
from the JSP page
The contentType attribute
Specifies MIME type of result
Cannot be used conditionally
The isThreadSafe attribute
Turns off concurrent access
Consider explicit synchronization instead
117
JSP
www.corewebprogramming.com
Review: Including Files in JSP
Documents
flush="true" />
Output inserted into JSP page at request time
Cannot contain JSP content that affects entire page
Changes to included file do not necessitate changes to
pages that use it
<%@ include file="Relative URL" %>
File gets inserted into JSP page prior to page translation
Thus, file can contain JSP content that affects entire page
(e.g., import statements, declarations)
Changes to included file might require you to manually
update pages that use it
118
JSP
www.corewebprogramming.com
59