* Teaches how to use Struts properly through the construction of a fully-functional app using J2EE design patterns.
* Presents 6 web anti-patterns and shows how to use Struts to refactor them, and discusses when and how to incorporate J2EE design patterns into your web apps.
* Introduces other Jakarta/OSS projects and show how to integrate them with Struts and simplify your Struts development e.g. ObjectRelationalBridge, XDoclet, Ant.
About the Author
Table of ContentsA table of contents is not available for this title.
Most Helpful Customer Reviews
Although there is a lot of good info on struts here it is near impossible to follow along and build the example app. The author takes you as far as setting up a development structure in chapter 2 then any semblance of instruction's on how to build in this environment go away. The author talks in detail about the creation of the app files but nowhere does it seem is there a reference of where they go, you have to figure it out for yourself. This would not be bad thing but when your trying to focus on learning the technology in the book all the overhead is distracting.
The motivation for this book is that for web server applications, several antipatterns have emerged. The authors term these Concern Slush, Tier Leakage, Hardwired, Validation Confusion, Tight Skins and Data Madness. Quite colourful and succinct. Apart from anything else, they should be commended for the terminology. They suggest that the knowledgeable use of Struts can prevent these antipatterns. For example, they devote an entire chapter to showing with a detailed case study how you can validate an HTML form using Struts framework. As another example, a different chapter deals with the Data Madness antipattern. They demonstrate how to access your SQL database with a tier that isolates the specific properties of that database from the rest of your code. Far easier to switch or upgrade the database, if you desire. Throughout the text are many instances of how the Struts XML configuration files gives you a simple declarative means of assembling your application. You still have to write actual code, of course. But the XML gives you a modular, extensible way to then plug the parts together. Oh yes, they also emphasise another attraction of Struts. It is free and open source.