Escape from common coding pitfalls with this detailed book of proven Jakarta missteps and solutions
The dangers of Jakarta pitfalls are everywhere and countless developers have already been trapped. These mistakes have delayed schedules, allowed major bugs to get into the users' hands, or led to numerous rewrites in maintenance. Luckily, you don't have to be the next victim. This comprehensive book captures some of the most common pitfalls that occur with Jakarta and provides you with the solutions to escape them. Focusing on Struts, Ant, Cactus, and JUnit, the authors describe each pitfall in detail, explain how developers have walked into the trap, and discuss the common symptoms and consequences.
They then arm you with a proven solution for each pitfall and take you step-by-step through the process of converting from error-ridden to pitfall-free code. In the end, the pitfalls and solutions presented inside will help you build superior applications that are easier to maintain.
This book will save you from the frustration of having to spend hours working your way out of pitfalls such as:
- Failing to isolate tests or subjects in Cactus and JUnit
- Overloading Struts ActionMappings
- Calculating derived values in JSPs
- Duplicating formatting and type conversion code in Struts Action Forms
- Building subprojects
- Performing business logic in Struts ActionForms
The companion Web site contains all the code examples and solutions in the book.