Chapter 3. HANDLING THE CLIENT REQUEST: FORM DATA

Topics in This Chapter

  • Using getParameter to read single values from prespecified parameters in the form data

  • Using getParameterValues to read multiple values from prespecified parameters in the form data

  • Using getParameterNames to discover what parameters are available

  • Handling both GET and POST requests with a single servlet

  • A servlet that makes a table of the input parameters

  • An on-line resumé posting service

  • Filtering HTML-specific characters

One of the main motivations for building Web pages dynamically is so that the result can be based upon user input. This chapter shows you how to access that input.

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.