Murach’s Beginning Java 2, JDK 5
Murach's Beginning Java 2, JDK 5 provides fast-paced, professional training in Java and is loaded with examples of real-world business applications. To see for yourself, download chapters 1 and 2 for free. Chapter 1 shows you how to install Java, use Java-related tools, and compile and run programs. Then, chapter 2 teaches you how to write your first complete Java applications.
Murach’s Java Servlets and JSP
If you already have the core J2SE skills, Murach’s Java Servlets and JSP will get you started with the J2EE skills you need to develop web applications at a professional level. To see for yourself, download chapter 4 ("How to develop JavaServer Pages") and chapter 5 ("How to develop servlets") for free.