Core Servlets and JavaServer Pages

Second Edition

Volume 2: Advanced Technologies
by Marty Hall, Larry Brown, and Yaakov Chaikin

There is now a free online servlet and JSP tutorial based on the book. The tutorial has complete source code that has been updated to the latest servlet and JSP versions, uses Eclipse, and has exercises and exercise solutions. See Also, many (most?) new Web apps should consider using JSF 2 as a higher-level alternative to servlets and JSP. See the JSF 2 tutorial series.