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 how to use Java effectively to power your Web site.
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--makes use of many of his skills here with a lively and effective presentation.
The second half of the book explains JSPs (which simplify using servlets through 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 wants to take advantage of the latest standards from Sun for serious Java web development. --Richard Dragan, Amazon.com
- Overview of Java servlets and JavaServer Pages (JSPs)
- servlets vs. CGI and ASPs
- survey of servlet products
- installation and configuration hints
- the servlet life cycle
- initialisation parameters
- debugging tips
- submitting and processing form variables
- HTTP request and response headers,
- session tracking with servlets
- 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
From the Back Cover
- Practical guide to using Java for Web-enabled applications and dynamic Web sites
- In-depth coverage of the latest J2EE standards: servlets version 2.2 and JSP 1.1
- Hundreds of completely portable, fully documented, industrial-strength examples
- Configuration details for Apache Tomcat, Sun's JSWDK, and the Java Web Server
Servlets and JavaServer Pages provide a powerful, efficient, portable, and secure alternative to CGI programming for developing professional e-commerce sites and other Web-enabled applications. Here's all you need to leverage the latest J2EE servlet 2.2 and JSP 1.1 standards: real-world insight, advanced techniques, industrial-strength code, and hands-on coverage of three top servlet/JSP engines, including Apache Tomcat.
- Part I gives exhaustive coverage of servlets 2.1 and 2.2. Starts with basic syntax, the servlet life cycle, and use of form data. Moves on to leveraging HTTP 1.1, cookies, and session tracking. Advanced topics include compressed Web content, persistent connections, dynamically generated images, and shopping carts for e-commerce.
- Part II provides an in-depth guide to JSP 1.0 and 1.1, including advice on when to use servlets, JSP, or a combination of the two. Discusses every standard JSP element, including approaches for integrating JavaBeans. Advanced techniques include sharing beans, generating Excel spreadsheets, and defining custom JSP tag libraries.
- Part III covers key supporting technologies: HTML forms, JDBC and database connection pooling, and the use of applets to communicate with servlets.
- Servlet and JSP Quick Reference provides a handy syntax and usage summary.
Every Core Series book:
- Demonstrates practical techniques used by professional developers
- Features robust, thoroughly tested sample code and realistic examples
- Focuses on the cutting-edge technologies you need to master today
- Provides expert advice that will help you build superior software
Core Servlets and JavaServer Pages delivers:
- Practical techniques for streamlining Web-enabled application development
- Proven strategies for optimizing servlet and JSP performance
- In-depth, hands-on coverage of the latest standards: servlets 2.2 and JSP 1.1
- On-line access to all source code, available free for unrestricted use