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.
020170921XB08202001
Features
Author Bio
Jeff Genender has been specializing in Java servlet technology for more than six years. Currently affiliated with Savoir Technologies, he is a veteran consultant specializing in Java and Web development.
020170921XAB08202001
Table of Contents
Foreword.
Preface.
1. Introduction to Enterprise Servlets.
Developing Servlets and Servlet Containers.
Setting Up and Running Servlets.
Registering Servlets with the Servlet Container.
What You Are Going to Need.
The BaseEnterpriseServlet.
Single Servlet.
BaseEnterpriseServlet Basics.
Configuration File.
Dispatch Service.
Implementation of a Base Servlet.
Http Method.
ConfigFile.
MethodList.
Sample Application.
Summary.
Chapter 2. AppContext--Managing Applications.
The ConfigFile--Revisited.
The AppContext Object.
Restructuring the BaseEnterpriseServlet.
The Two Application Example.
Forcing Uniqueness Across Applications--AppManager.