Chapter 12. INCLUDING FILES AND APPLETS IN JSP DOCUMENTS

Topics in This Chapter

  • Including JSP files at the time the main page is translated into a servlet

  • Including HTML or plain text files at the time the client requests the page

  • Including applets that use the Java Plug-In

JSP has three main capabilities for including external pieces into a JSP document.

The include directive lets you reuse navigation bars, tables, and other elements in multiple pages. The included elements can contain JSP code and thus are inserted into the page before the page is translated into a servlet. This capability is discussed in Section 12.1.

Although including external pieces that use JSP is a powerful capability, other times you would rather sacrifice some power for ...

Get Core Servlets and JavaServer Pages™ 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.