In the Java universe, the interface layer of the ubiquitous model-view-controller (MVC) software design paradigm is handled by either servlets of JavaServer Pages (JSP). The second edition of Core Servlets and JavaServer Pages, like its predecessor, documents these handy technologies fully and practically. Far more than a straight API reference, this book presents examples--complete with code and a listing or screen shot showing results--wherever possible. It's a fantastic strategy for communicating to programmers what they need to do in order to achieve the effects and behaviors they desire. What's new in the second edition? Lots, in terms of its eponymous software development environments: The book covers servlets 2.4 and JSP 2.0. The examples are more refined, too, and more attention is paid to supporting technologies like Web and database servers.
The didactic approach of authors Marty Hall and Larry Brown is recipe-like. They typically begin with a statement of a problem to be solved, then discuss relevant aspects of the servlet or JSP API. A series of code listings follows, and screen shots showing results bring up the rear. The net effect is that it's easy to spot relevant sections in the table of contents, it's clear how implementation works (thanks to the extensive listings) and there's no doubt about what the results are supposed to be. More elaborate examples show how servlets and JSP work in shopping cart, auction, and other applications. This is a significant and worthwhile update to an important Java book. --David Wall
Topics covered: Java servlets 2.4, JavaServer Pages (JSP) 2.0 (including the new expression language), HTML forms, JDBC database connectivity, and the details of how servlets and JSP are implemented in Apache Tomcat, Caucho Resin, and Macromedia JRun.
Marty Hall's Core Servlets and JavaServer Pages was the number 1 servlet/JSP book in 2000 -- helping over 100,000 Java developers master the power of Java server-side programming to Web-enable an extraordinary range of applications. Now, Hall takes the next step, bringing together even more powerful servlet/JSP techniques. The second edition of Core Servlets and JavaServer Pages provides a complete introduction to the technology, completely updated for JSP 2.0, servlets 2.4, the JSP Standard Tag Library (JSTL), and Java 1.4. This book serves both beginning and advanced developers. For beginning servlet and JSP developers, the book provides clear step-by-step coverage of the basic topics. For programmers already experienced with servlet and JSP technology, the book provides in-depth discussion of advanced topics, complete coverage of newly introduced capabilities, and practical design strategies. J2EE technology is the leading technology for building Web applications and services, and servlet and JSP technology is the heart of the J2EE platform. Servlets and JSP are the most popular way to build Web applications: every Java and Web developer needs to know this. JSP 2.0 will fundamentally change how servlet and JSP technology is used, so even experienced developers need to read this book!
Java EE is the technology of choice for e-commerce applications, interactive Web sites, and Web-enabled services. Servlet and JSP technology provides the link between Web clients and server-side applications on this platform. Core Servlets and JavaServer Pages, Volume 2: Advanced Technologies, Second Edition, is the definitive guide to the advanced features and capabilities provided by servlets and JSP.
Volume 2 presents advanced capabilities like custom tag libraries, filters, declarative security, JSTL, and Struts. Like the first volume, it teaches state-of-the-art techniques and best practices illustrated with complete, working, fully documented programs.
Volume 2 explains in detail the advanced tools and techniques needed to build robust, enterprise-class applications. You'll learn how to control application behavior through the web.xml deployment descriptor file, how to enhance application security through both declarative and programmatic methods, and how to use servlet and JSP filters to encapsulate common behavior. You'll also learn how to control major application lifecycle events, best practices for using JSTL, and how to build custom tag libraries. Volume 2 concludes with an in-depth introduction to the Jakarta Struts framework.
Complete source code for all examples is available free for unrestricted use at www.volume2.coreservlets.com. For information on Java training from Marty Hall, go to courses.coreservlets.com.
Volume 1 presents comprehensive coverage of the servlets and JSP specifications, including HTTP headers, cookies, session tracking, JSP scripting elements, file inclusion, the MVC architecture, and the JSP expression language. It also covers HTML forms, JDBC, and best practices for design and implementation.
About the Author
Marty Hall is the president of coreservlets.com, a leading provider of Java training and consulting services. Marty has given courses on Java technologies in seven countries and dozens of U.S. venues, and directs the Java and Web-related concentration areas in the part-time Computer Science graduate program at the Johns Hopkins University. His books include all editions of Core Servlets and JavaServer Pages, More Servlets and JavaServer Pages, and Core Web Programming.
Larry Brown is an IT manager at a U.S. Navy Research and Development Laboratory, and coauthor of Core Web Programming, Second Edition (Prentice Hall, 2001).
Yaakov Chaikin, senior consultant at a software development company based in Columbia, MD, heads the Web Development track at Loyola College's graduate computer science program.