Murach's Java Servlets and JSP

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. To see how well this chapter works, you can download this chapter for free.

Chapter 5 How to develop servlets
The Email List application 142
The user interface for the application 142
The code for the EmailServlet class 144
How to create a servlet 146
How to code a servlet 146
How to save and compile a servlet 148
How to request a servlet 150
Other skills for working with servlets 152
The methods of a servlet 152
How to code instance variables 154
How to code thread-safe servlets 156
How to debug servlets 158
Common servlet problems 158
How to print debugging data to the console 160
How to write debugging data to a log file 162
t




Murach's Java Servlets and JSP

Learn more about this book

Add this book to your cart

Download this chapter