Murach's Java Servlets and JSP (2nd Edition)
How to develop servlets

This chapter shows how to code servlets. In particular, it shows how to code a servlet that gets parameters from an HTML form, writes that data to a text file, and returns an HTML page that displays the data.

Chapter 6 How to develop servlets
The Email List application 174
The user interface for the application 174
The code for the HTML page that calls the servlet 176
The code for the servlet 178
The mapping for the servlet 180
How to code, map, and request a servlet 182
How to code a servlet 182
How to map a servlet to a URL 184
How to request a servlet 186
More skills for working with servlets 188
The methods of a servlet 188
How to code instance variables 190
How to work with servlet errors 192
How to solve common servlet problems 192
How to print debugging data to the console 194
How to print debugging data to a log file 196
t




Murach's Java Servlets and JSP

Learn more about this book

View the table of contents


More about the eBook