From Amazon
Aimed at those with some previous Java experience,
Core Servlets and JavaServer Pages covers all you need to know to create effective Web applications using server-side Java. Combining plenty of practical advice with detailed information on these APIs, this book provides both the necessary background on Web programming and guidance on using Java effectively to power your Web site.
Similar in spirit to the author's previous title, Core Web Programming, which covered the disparate tools and technologies for successful Web development centered on Java/CGI/JavaScript, this book covers all the APIs and standards you'll need to work with today's Java 2 standard. This means a solid tour of servlets and JavaServer Pages (JSPs) as well as related standards such as HTML forms and JDBC for database programming. The book takes a hands-on approach and includes tips for installing and configuring today's Java platforms (including Apache's free Tomcat servlet package).
For sample programs, this text shows off an e-commerce online travel Web application, as well as more theoretical (but still interesting) examples using large prime numbers. The author--a physicist and accomplished teacher--uses many of his skills in this lively and effective presentation.
The second half of the book explains JSPs (they make it easier to use servlets with embedded Java statements in HTML). A standout chapter here explains how to combine servlets with JSPs to create maintainable Web sites with plenty of dynamic content. Sections on database programming with JDBC are supplemented by a discussion of connection pooling (including a custom class for better performance).
With its tour of the essential APIs and design techniques, Core Servlets and JavaServer Pages delivers what every programmer needs to know to use Java effectively for the Internet. It's a great choice for anyone who wants to take advantage of the latest standards from Sun for serious Java Web development. --Richard Dragan
Topics covered: Overview of Java servlets and JavaServer Pages (JSPs), servlets vs. CGI and ASPs, survey of servlet products, installation and configuration hints, using packages with servlets, the servlet life cycle, initialization parameters, debugging tips, HTML form basics, submitting and processing form variables, HTTP request and response headers, standard CGI variables, HTTP status codes, using cookies, session tracking with servlets, e-commerce example, JSP scripting elements and attributes, including files, using applets, JavaBeans and tag libraries with JSPs, strategies for combining servlets and JSPs effectively, database and JDBC tutorial, and connecting pooling.
Book Description
A complete guide to building interactive sites, dynamic pages, and Web-enabled applications with the new J2EE versions of servlets (v. 2.2) and JavaServer Pages (v. 1.1).
Includes many portable, fully-documented, production-quality examples.
Provides setup and configuration details for the three leading free servlet/JSP engines- Apache Tomcat, the JSWDK, and the Java Web Server.
Advanced topics- Defining custom JSP tags, transmitting compressed pages, generating images and Excel spreadsheets, developing a shopping cart class, exploiting keep-alive HTTP connections, and JDBC connection pooling. Servlets and JavaServer Pages dramatically simplify the creation of dynamic Web pages and Web-enabled applications. With Java 2 Enterprise Edition (J2EE), these tools have come of age, earning the support of an unprecedented range of Web and application servers on every major operating system. This book is a comprehensive guide for every experienced developer who wants to master the new versions of these powerful tools. Start by mastering servlet syntax, installation and setup fundamentals and the servlet life cycle. Use cookies and session tracking, optimize browsers, compress pages to slash download time, and decrease overhead with persistent HTTP sessions. Next, master every key JavaServer Pages 1.1 technique you'll need- expressions, declarations, and scriptlets; controlling the format of the servlet that results from the page; incorporating reusable JavaBeans; sharing Beans among pages; dynamically including other files; defining your own JSP tag libraries, and combining servlets and JSP in a single application. Part III offers the industry's most in-depth, practical coverage of using applets and HTTP tunneling as servlet front ends, using JDBC and connection pooling, and HTML forms.
Marty Hall is a Senior Computer Scientist at the Johns Hopkins University Applied Physics Laboratory, teaches Java and Web programming at Johns Hopkins' part-time computer science graduate program, and authored Core Web Programming.
0-13-089340-X Sun Microsystems Press