|
Jakarta Commons Online Bookshelf: Module 13 Understanding and Using Chain Vikram Goyal 2005 | 12 pages ISBN: |
|||
![]() |
$5.00 | PDF ebook | |
Table of Contents
- Module 13: Understanding and using Chain
- Introducing the Chain component
- Using the Chain component
- Struts and the Chain component
- Summary
- Index
DESCRIPTION
Chain is a recently released Commons component that has gained increased popularity because of its association with Struts. Chain is an implementation of the "Chain of Responsibility" pattern that advocates a series of commands being put together in a chain where commands are independent entities that have no knowledge of their predecessor or successor entity. Thus, commands work in isolation, with only a common "context".
This module explains the Chain component in great detail with full fledged examples. The "Chain of Responsibility" pattern is the basis for this component and this is highlighted with a simple example, which also shows how to create a basic chain of commands.
The biggest advantage of the Chain component is the fact that it is going to be used as the basis for the next RequestProcessor for Struts. This allows application developers to pre process web requests, without the need for extending the Struts RequestProcessor. This module shows how to do this with help of an example that builds Struts-Chain, tweaks the chain-config.xml, installs the Chain RequestProcessor for Struts and writes a Command class that pre processes a web request.
What's Inside
- Introducing the Chain component
- Using the Chain component
- Struts and the Chain component
- Summary
- Index
WHAT THE READERS SAY ABOUT THIS BOOK...
"Great stuff! This is the ultimate missing manual to Jakarta Commons."
--Glen Smith, J2EE Consultant, Bytecode Pty Ltd
"...this manuscript is packed with incredibly useful information."
--Dirk Verbeeck, Jakarta Project Management Committee
"...has something for every developer. Well organized and structured."
--Robert Burrell Donkin, Apache Jakarta Commons Committer
"It is extremely well written, has outstanding examples that work, and provides excellent documentation."
--Doug Warren, Software Architect, Leading diversified financial services company
ABOUT THE AUTHOR...
Vikram Goyal, author of Beginning JSP 2.0 and Professional JSP Site Design, regularly writes how-to articles on open source projects. His series of articles on Jakarta Commons was the first such effort to make sense out of the chaotic world of Jakarta Commons. His article series is still reflected in the official main entry page of Jakarta Commons as the only online series covering these components. Vikram is a Sun Certified Programmer for the Java 2 Platform. Vikram lives in Brisbane, Australia.

