Topics in This Chapter

  • The purpose of JSP

  • How JSP pages are invoked

  • Using JSP expressions to insert dynamic results directly into the output page

  • Using JSP scriptlets to insert Java code into the method that handles requests for the page

  • Using JSP declarations to add methods and field declarations to the servlet that corresponds to the JSP page

  • Predefined variables that can be used within expressions and scriptlets

JavaServer Pages (JSP) technology enables you to mix regular, static HTML with dynamically generated content from servlets. You simply write the regular HTML in the normal manner, using familiar Web-page-building tools. You then enclose the code for the dynamic parts in special tags, most of which start ...

Get Core Servlets and JavaServer Pages™ now with O’Reilly online learning.

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