Enterprise Java Servlets (Paperback)
Jeff M. Genender
- 出版商: Pearson Education
- 出版日期: 2001-09-04
- 定價: USD $39.99
- 售價: $199
- 語言: 英文
- 頁數: 464
- 裝訂: Paperback
- ISBN: 020170921X
- ISBN-13: 9780201709216
售價: $399Java Server and Servlets: Building Portable Web Applications (Paperback)
售價: $99Professional .NET Framework (Paperback)
售價: $788Enterprise JavaBeans, 4/e (Paperback)
售價: $199Enterprise JavaBeans Component Architecture: Designing and Coding Enterprise App
貴賓價: $1,064Java XML Programmer's Reference
售價: $199Java 2 Micro Edition (Paperback)
售價: $399Developing Java Servlets: Web application with servlets ad JSP, 2/e (Paperback)
售價: $199Building Java Enterprise Systems with J2EE (Paperback)
售價: $199HAVi Example By Example: Java Programming for Home Entertainment Devices (Paperback)
售價: $199JavaServer Pages (Paperback)
貴賓價: $1,425JNDI API Tutorial and Reference: Building Directory-Enabled Java Applications (Paperback)
售價: $199XML.NET Developer's Guide
售價: $620SQL Server Security Distilled
貴賓價: $1,663Server-Based Java Programming
貴賓價: $855Oracle Web Applications: PL/SQL Developer's Introduction (Paperback)
售價: $299JSP and Java: The Complete Guide to Website Development
售價: $1,050Effective Visual Studio .Net
售價: $199.NET Enterprise Development in VB.NET: From Design to Deployment (Paperback)
Learn to design and build a base enterprise servlet. Create an architecture that makes your enterprise applications run faster and more reliably.
Java™ servlets are rapidly replacing CGI as the tool of choice for creating interactive applications for the enterprise market. Using the Java programming language's servlet technology speeds up the application development process, freeing developers from the need to make platform-specific modifications. Servlet technology is reliable, employs reusable components, and ensures high performance in the demanding enterprise and e-commerce markets.
Enterprise Java™ Servlets anticipates common issues and provides new development methods, extensive sample code, and case studies. The book is based on a battle-tested base servlet architecture that the author and his team created while repairing a workflow application for clients. Jeff noticed that many corporations and development shops ran into the same problems and pitfalls time and time again. This book chronicles Jeff's experiences creating a servlet-based architecture, which helps avoid issues that are continually encountered and provides for rapid application development in the enterprise. The type of architecture presented here eliminates the need to code servlets from scratch and automatically provides each servlet with access to all the new features and solutions added to the base servlet. This type of single-servlet approach results in a single, consistent application that is easy to migrate to production and extend to new applications.
You'll find expert coverage of various topics, including:
- HTML development in servlets
- How templates assist in content management
- Pool objects that streamline the use of objects and database connections in a Web environment
- Integrating LDAP into a Java servlet application
- Dynamic image generation and pluggable security models for servlets
- Multiple applications running on a single server and the effect on session, component, and application variables
Geared to developers who have a working knowledge of servlet development, this book provides the base servlet architecture--complete with extensive code samples and numerous case studies--that you can build on when writing enterprise applications. Using base servlet architecture removes the drudgery of developing servlets, so you can concentrate on business needs.
The accompanying CD-ROM includes code examples, as well as Windows and UNIX versions of JRun, ServletExec, and Apache Tomcat Servlet Container.
Table of Contents
1. Introduction to Enterprise Servlets.
Registering Servlets with the Servlet Container.
What You Need.
The Base Enterprise Servlet.
Base Enterprise Servlet Basics.
Implementation of a Base Servlet.
The HttpMethod Class.
The ConfFile Class.
The MethodList Class.
Chapter 2. AppContext: Managing Applications.
The AppContext Object.
Restructuring the BaseEnterpriseServlet.
The Two Application Example.
Forcing Uniqueness Across Applications—AppManager.
Chapter 3. Forms, State and Session Management.
Packaging the Query with GET and POST.
HTTP Forms and Enterprise Servlets.
Form and HTML Development in the Enterprise.
Maintaining State with Sessions in the Enterprise.
The Enterprise Session.
Session and Form Example with Multiple Applications.
Chapter 4. HTML with Templates.
Developing a Template Engine.
Templates with Enterprise Servlets.
Making It Scream—Caching Templates.
Integrating the Template Objects and Cache into Enterprise Servlets.
into Enterprise Servlets.
Using the Template Cache in Enterprise Servlets.
Chapter 5. Logging and Error Handling.
The Components of a Standardized Log File.
The EnterpriseLog Object.
A Logging Example.
Logger Application with Error-Handling.
Chapter 6. Security.
Customizing Web Authentication.
Example Using Pluggable Security Components.
Chapter 7. Pools.
Using Pools in Web Development.
Using the Pool Object.
Using the Pool: An Example.
The Pool Anomaly.
Using the PoolList and PoolObjectManager: An Example.
Chapter 8. Database Connectivity.
JDBC Statement and ResultSet Objects.
The PreparedStatement and CallableStatement Objects.
Closing the Connection.
Managing the Connection in a Server Environment.
Understanding Connection Management.
Building Connection Management.
The SQLCursor Object.
The DBConnection Object.
Using the Connection Management Objects.
Database Pooling with the Connection.
Making the DBConnectionPool Object Easier to Create.
The DBPoolParser Object.
Using the DBPoolParser in Enterprise Servlets.
Chapter 9. LDAP Connectivity.
How LDAP Works.
Advantages and Disadvantages of LDAP.
LDAP with Java: The JNDI.
Searching LDAP for Values.
Adding and Removing an Entry.
Modifying Attributes Within an Entry.
Closing the LDAPContext Object.
LDAP Considerations in a Server Application.
Building the LDAP Connection Management Objects.
The LDAPConnection Object.
Using the LDAP Connection Management Objects.
The LDAPConnectionPool Object.
Putting the Connection Management Objects to Use.
Chapter 10. Dynamic Graphics.
Handling Image Types.
Pooling Memory Buffers.
Random Pie Chart Example.
Chapter 11. Using JSP with Enterprise Servlets.
JSPs with Servlets.
Releasing BaseEnterpriseServlet's Grip on AppContext.
Tapping into the Enterprise Servlet.
A Quick Look at the Java Tag Library.
Bridging the JSP to the Enterprise Servlet.
Using the ESBridge Tag Library.
Accessing the EnterpriseSession Object.
Chapter 12. Taking Enterprise Servlets Further.
Enhancements for the Reader.
The Template Engine.
The Database and LDAP Pools.
Pager or Email Monitor.
Anything You Want.