O'Reilly logo

Core Servlets and JavaServer Pages™: Volume 1: Core Technologies, 2nd Edition by Larry Brown, Marty Hall

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required