did-you-know? rent-now

Rent More, Save More! Use code: ECRENTAL

did-you-know? rent-now

Rent More, Save More! Use code: ECRENTAL

5% off 1 book, 7% off 2 books, 10% off 3+ books

9780201709216

Enterprise Java(TM) Servlets

by
  • ISBN13:

    9780201709216

  • ISBN10:

    020170921X

  • Edition: CD
  • Format: Paperback w/CD
  • Copyright: 2002-01-01
  • Publisher: Addison-Wesley Professional
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $39.99

Summary

This is not a beginner's guide: it's an enterprise developer's guide to building industrial-strength servlets. Jeff Genender shows exactly how to dramatically improve servlet performance, reliability, and scalability, while simplifying coding and maintenance in large-scale development environments. This book brings together in-depth tutorials, case studies, and reference materials for advanced real-world servlet development. It draws heavily on the author's own experience in developing servlet architectures from scratch and transforming inferior servlet applications into stable, reliable software. Among the topics covered: creating a reusable base servlet architecture that accelerates development and streamlines maintenance; improving error handling; establishing processes that allow multiple developers to work on the same server projects; and using servlets in sophisticated load balancing and fault tolerance applications. For all enterprise developers working with servlets and related technologies, and for Web developers who need to replace their current server-side technologies with a more powerful solution.

Table of Contents

Preface xiii
Introduction to Enterprise Servlets
1(38)
Developing Servlets and Servlet Containers
2(5)
Setting Up and Running Servlets
3(1)
Registering Servlets with the Servlet Container
4(2)
What You Need
6(1)
The Base Enterprise Servlet
7(11)
The Single-Servlet Approach
14(1)
Base Enterprise Servlet Basics
14(4)
Implementation of a Base Servlet
18(17)
The Class. for Name () Method
24(7)
The Http Method Class
31(1)
The ConfFile Class
32(2)
The Method List Class
34(1)
Sample Application
35(2)
Summary
37(2)
AppContext: Managing Applications
39(32)
The Configuration File Revisited
41(1)
The AppContext Object
42(7)
Restructuring BaseEnterpriseServlet
49(7)
A Two-Application Example
56(7)
Forcing Uniqueness across Applications: AppManager
63(6)
Summary
69(2)
Forms, State, and Session Management
71(46)
HTTP Forms: A Review
72(14)
The <FORM> Tag
72(3)
Packaging the Query with GET and POST
75(2)
HTTP Forms and Enterprise Servlets
77(2)
Form and HTML Development in the Enterprise
79(7)
Maintaining State with Sessions in the Enterprise
86(7)
Standard Servlet Architecture and Sessions
90(3)
The Enterprise Session
93(10)
Session and Form Example with Multiple Applications
103(11)
Summary
114(3)
HTML with Templates
117(52)
Using Templates
118(2)
JSP as a Template Engine
119(1)
Developing a Template Engine
120(23)
The HTML Template Object
126(8)
Templates with Enterprise Servlets
134(2)
Nesting Templates
136(7)
Making the Template Engine Scream: Caching Templates
143(23)
Building the Template Cache
146(11)
Integrating the Template Objects and Cache into Enterprise Servlets
157(6)
Using the Template Cache in Enterprise Servlets
163(3)
Summary
166(3)
Logging and Error Handling
169(44)
Logging in a Servlet Engine
169(6)
Anomalies of a Servlet Engine Log File
171(1)
Components of a Standardized Log File
172(3)
The EnterpriseLog Object
175(13)
Logging in Enterprise Servlets
188(7)
A Logging Example
195(6)
Error Handling
201(9)
The DefaultError Handler Object
204(4)
The Logger Application with Error Handling
208(2)
Summary
210(3)
Security
213(26)
Types of Security
213(3)
Web Authentication
216(12)
Under the Hood
218(2)
Customizing Web Authentication
220(3)
An Example Using Pluggable Security Components
223(5)
Form-Based Authentication
228(8)
Integrating Form-Based Authentication into Enterprise Servlets
230(6)
Summary
236(3)
Pools
239(34)
What Is a Pool?
240(2)
Using Pools in Web Development
242(17)
The Base Pool Object
244(9)
Using the Pool Object
253(2)
Using the Pool: An Example
255(4)
The Pool Anomaly
259(11)
PoolList and PoolObject Manager
262(7)
Using PoolList and PoolObjectManager: An Example
269(1)
Summary
270(3)
Database Connectivity
273(44)
JDBC: A Quick Review
273(5)
Loading the Driver and Connecting to the Database
274(1)
The JDBC Statement and ResultSet Objects
275(1)
The PreparedStatement and CallableStatement Objects
276(1)
Transactions
277(1)
Closing the Connection
278(1)
Managing the Connection in a Server Environment
278(3)
Understanding Connection Management
281(3)
Building Connection Management
284(10)
The JDBCManager Object
284(3)
The SQL Cursor Object
287(6)
The DBConnection Object
293(1)
Using the Connection Management Objects
294(3)
Database Pooling with the Connection Management Objects
297(7)
Using the DBConnectionPool Object
300(4)
Making the DBConnectionPool Object Easier to Create
304(9)
The Name ValuePair Object
306(1)
The DBPoolParser Object
307(6)
Using DBPoolParser in Enterprise Servlets
313(1)
Summary
314(3)
LDAP Connectivity
317(34)
A Little History of LDAP
318(1)
How LDAP Works
318(3)
Distinguished Names
320(1)
Advantages and Disadvantages of LDAP
320(1)
LDAP with Java: The JNDI
321(6)
Connecting to LDAP
321(1)
Searching LDAP for Values
322(3)
Sorting Results
325(1)
Adding and Removing an Entry
325(2)
Modifying Attributes within an Entry
327(1)
Closing the LdapContext Object
327(1)
LDAP Considerations in a Server Application
327(2)
Building the LDAP Connection Management Objects
329(11)
The LDAPManager Object
330(7)
The LDAPConnection Object
337(1)
Using the LDAP Connection Management Objects
338(2)
The LDAPConnectionPool Object
340(3)
Putting the Connection Management Objects to Use
343(6)
Summary
349(2)
Dynamic Graphics
351(24)
How a Browser Requests Images
352(2)
Handling Image Types
354(1)
Dynamic Images
355(5)
Memory Management
360(4)
Creating Objects Is Your Worst Enemy
361(1)
Pooling Memory Buffers
361(3)
Random Pie Chart Example
364(9)
Summary
373(2)
Using JSP with Enterprise Servlets
375(44)
Is There a Preference?
375(1)
JSPs with Servlets
376(32)
JSPs and Enterprise Servlets
384(1)
Releasing BaseEnterpriseServlet's Grip on AppContext
385(3)
Tapping into Enterprise Servlets
388(1)
A Quick Look at the Java Tag Library
389(6)
Bridging JSPs to Enterprise Servlets
395(9)
Using the ESBridge Tag Library
404(4)
Accessing the EnterpriseSession Object
408(9)
Using the <ESSession> Tag
413(2)
Handling Errors
415(2)
Summary
417(2)
Taking Enterprise Servlets Further
419(12)
Web Server Startup in a Multiapplication Environment
419(9)
Enhancements for the Reader
428(3)
The Template Engine
428(1)
Database and LDAP Pools
428(1)
An Administrative Tool
429(1)
A Pager or E-Mail Monitor
429(1)
Anything You Want
429(2)
Bibliography 431(2)
Index 433

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program