Chapter 12. Controlling the Structure of Generated Servlets: The JSP page Directive

Topics in This Chapter

  • Understanding the purpose of the page directive

  • Designating which classes are imported

  • Specifying the MIME type of the page

  • Generating Excel spreadsheets

  • Participating in sessions

  • Setting the size and behavior of the output buffer

  • Designating pages to handle JSP errors

  • Controlling threading behavior

  • Using XML-compatible syntax for directives

A JSP directive affects the overall structure of the servlet that results from the JSP page. The following templates show the two possible forms for directives. Single quotes can be substituted for the double quotes around the attribute values, but the quotation marks cannot be omitted altogether. To obtain quotation ...

Get Core Servlets and JavaServer Pages™: Volume 1: Core Technologies, 2nd Edition now with the O’Reilly learning platform.

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