Buy Used
£5.43
+ £2.80 UK delivery
Used: Very Good | Details
Sold by owlsmart_usa
Condition: Used: Very Good
Comment: Pages are clean and free of writing and or highlighting. Cover edges show some wear from reading and storage.
Have one to sell?
Flip to back Flip to front
Listen Playing... Paused   You're listening to a sample of the Audible audio edition.
Learn more
See all 2 images

Jakarta Pitfalls: Time-saving Solutions for Struts, Ant, Junit and Cactus (Java Open Source Library) Paperback – 29 Jul 2003

3.5 out of 5 stars 2 customer reviews

See all formats and editions Hide other formats and editions
Amazon Price
New from Used from
Paperback
"Please retry"
£18.57 £5.43
click to open popover

Special Offers and Product Promotions

Enter your mobile number below and we'll send you a link to download the free Kindle App. Then you can start reading Kindle books on your smartphone, tablet, or computer - no Kindle device required.
Getting the download link through email is temporarily not available. Please check back later.

  • Apple
  • Android
  • Windows Phone

To get the free app, enter your mobile phone number.




Product details

  • Paperback: 312 pages
  • Publisher: John Wiley & Sons (29 July 2003)
  • Language: English
  • ISBN-10: 0471449156
  • ISBN-13: 978-0471449157
  • Product Dimensions: 19 x 1.9 x 23.4 cm
  • Average Customer Review: 3.5 out of 5 stars  See all reviews (2 customer reviews)
  • Amazon Bestsellers Rank: 7,537,680 in Books (See Top 100 in Books)
  • See Complete Table of Contents

Product Description

From the Back Cover

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.

About the Author

BILL DUDNEY is a Java architect with Object Systems Group. He has been building J2EE applications and software for five years and has been doing distributed computing for almost fourteen years. He is the coauthor of J2EE AntiPatterns (from Wiley).

JONATHAN LEHR is an independent consultant with more than twenty years of experience in software development and training. He has designed e–commerce applications for Fortune 100 companies.

Customer Reviews

3.5 out of 5 stars
5 star
1
4 star
0
3 star
0
2 star
1
1 star
0
See both customer reviews
Share your thoughts with other customers

Top Customer Reviews

Format: Paperback
I have to admit that I am a big fan of antipattern books. There are many ways to code an application but a few of those ways will cause problems in the long run both in debugging and maintenance. This book looks at four of the most popular Jakarta applications, JUnit, Cactus, Struts, and Ant, and shows the most common problems that you encounter when using these applications. The book gives a chapter each to Ant and the two testing applications JUnit and Cactus but the majority of the book is dedicated to Struts.
Each chapter looks at several programming mistakes and then discusses ways to revise your code to fix these mistakes and make your code more robust. The problems with certain coding styles are well explained with clear reasoning as to why you don't want to code a particular way. Corrective solutions are well documented with plenty of code samples to show both before and after images.
Although the chapters on testing and Ant are good, the heart of the book is the chapters on Struts. The authors discuss potential problems using Actions, ActionForms, and the Struts tag library. Some problems can just make your code more difficult to maintain while others can introduce intermittent bugs that are very difficult to diagnose. Anyone who is using Struts should absolutely read these chapters, as it will save you from making some simple mistakes that could cause a lot of long-term pain in your development.
Comment 6 people found this helpful. Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse
Format: Paperback
For some reason Amazon have copied only a 5 star review of this product from Amazon.com. I found the following review from Frizbog, Suffolk, VA USA helpful and reasonably accurate:
The book is fine, but it in the back is a boiled down synopsis, about 5 pages, that suffices for the entire book. The rest of the book doesn't really add that much. The material here is good, but is available by reading a few white papers and faq's on the web. I didn't dislike the book, I just wish I hadn't spent the money.
Come on Amazon, play fair!
Comment 6 people found this helpful. Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback.
Sorry, we failed to record your vote. Please try again
Report abuse

Most Helpful Customer Reviews on Amazon.com (beta)

Amazon.com: HASH(0x95f64fc0) out of 5 stars 11 reviews
9 of 9 people found the following review helpful
HASH(0x95f71b10) out of 5 stars Using Struts? Buy this book! 4 Oct. 2003
By Thomas Paul - Published on Amazon.com
Format: Paperback
I have to admit that I am a big fan of antipattern books. There are many ways to code an application but a few of those ways will cause problems in the long run both in debugging and maintenance. This book looks at four of the most popular Jakarta applications, JUnit, Cactus, Struts, and Ant, and shows the most common problems that you encounter when using these applications. The book gives a chapter each to Ant and the two testing applications JUnit and Cactus but the majority of the book is dedicated to Struts.
Each chapter looks at several programming mistakes and then discusses ways to revise your code to fix these mistakes and make your code more robust. The problems with certain coding styles are well explained with clear reasoning as to why you don't want to code a particular way. Corrective solutions are well documented with plenty of code samples to show both before and after images.
Although the chapters on testing and Ant are good, the heart of the book is the chapters on Struts. The authors discuss potential problems using Actions, ActionForms, and the Struts tag library. Some problems can just make your code more difficult to maintain while others can introduce intermittent bugs that are very difficult to diagnose. Anyone who is using Struts should absolutely read these chapters, as it will save you from making some simple mistakes that could cause a lot of long-term pain in your development.
7 of 8 people found the following review helpful
HASH(0x95f71b64) out of 5 stars The synopsis in the back is the entire book 19 Dec. 2003
By M. R. Harrah - Published on Amazon.com
Format: Paperback
The book is fine, but it in the back is a boiled down synopsis, about 5 pages, that suffices for the entire book. The rest of the book doesn't really add that much. The material here is good, but is available by reading a few white papers and faq's on the web. I didn't dislike the book, I just wish I hadn't spent the money.
2 of 2 people found the following review helpful
HASH(0x95f71f9c) out of 5 stars easy to read and useful 20 Nov. 2004
By ZhongDan LAN - Published on Amazon.com
Format: Paperback
If you are working with Struts, Ant, or automated unit testing into your development process,

then this is a book for you.

This book looks at the popular Jakarta applications as

JUnit/Cactus, Struts, and Ant, and shows the most common pitfalls when using

these applications. The book gives

a chapter to Ant and one chapter to JUnit/Cactus and rest to Struts.

Most part of the book is on Struts. The authors discuss potential

problems using Actions, ActionForms, and Struts tag library.

Each pitfall has its own section and is formatted the same as the others.

You get a description of each pitfall, an example of the pitfall in action,

and steps for refactoring it. Corrective solutions are well documented with plenty of code samples

to show both before and after images.

This is a good book on anti-patterns and refactoruing, very good companion of the book <<Rafactorying>> (by Martin Fowler)

and

<<Java Tools for Extreme Programming: Mastering Open Source Tools Including Ant, JUnit, and Cactus>>

(this one covers ant and junit/cactus but not struts)

This book is very readable, some may think it just covers obvious problems, actually, it coveres common pitfalls

that most people forget to escape. It's not a difficult book, but very practical.
2 of 2 people found the following review helpful
HASH(0x95f74384) out of 5 stars Where was this book when I was cutting my teeth on Cactus 15 Oct. 2003
By A Customer - Published on Amazon.com
Format: Paperback
This is an important book. If you're new to any of these tools, don't waste your time hitting the same potholes that everyone else has. The authors took some good notes in trenches, and they present their pitfalls in a structure way that builds one upon another.
I just wish this book was available when I was first getting started with Cactus!? It will be at my elbow as I start my upcoming Struts project.
(The only reason I didn't give this book 5 stars is that I ran across a few typos.)
1 of 1 people found the following review helpful
HASH(0x95f74114) out of 5 stars required reading 27 Aug. 2003
By Chris Maki - Published on Amazon.com
Format: Paperback
Dudney and Lehr have put together and excellent catalog of common pitfalls that occur when using Ant, Cactus, JUnit, and Struts. This book will help you identify pitfalls in your code and provides practical solutions for solving them. For each pitfall, a description is given along with step-by-step instructions for digging your code out of it. Accompanying the text are examples of code stuck in the pitfall and code that has been fixed.
How often have you or someone you worked with used System.out.println() to verify test results? This is pitfall 1.3: Console-Based Testing. Detailed examples show how to get out of this pitfall for both JUnit and Cactus based tests. In addition to solving the problem at hand, the authors explain how you might fall into the pitfall and how to avoid it in the future.
Have you ever written a getSomethingAsString() method in your model so that you can populate a Struts ActionForm? This is Pitfall 2.1: Copy/Paste Formatting. On the JSP front, this code: <bean:message key="label.invoice.number"/> may look familiar, however, it is Pitfall 4.2: Hard-Coded Keys in JSPs.
Jakarta Pitfalls is replete with practical examples and solutions. I cannot say enough about this book, other than it will be required reading for all projects I am on.
Were these reviews helpful? Let us know


Feedback