
Average Reviews:

(More customer reviews)Are you looking to buy Apache Struts 2 Web Application Development? Here is the right place to find the great deals. we can offer discounts of up to 90% on Apache Struts 2 Web Application Development. Check out the link below:
>> Click Here to See Compare Prices and Get the Best Offers
Apache Struts 2 Web Application Development ReviewDISCLOSURE: I received a free copy of the book from Packt Publishing in return for agreeing to write a review. I also know the author, Dave Newton, from his frequent and very useful contributions to the Struts 2 user mailing list. Dave also helped me on a Struts 2 - Jasper Reports project.I completed reading and working through the code for Apache Struts 2 Web Application Development (Packt Publishing, 2009, ISBN 978-1847193-39-1) by Dave Newton. I was looking forward to reading this book as published books on learning Struts 2 are few, especially since the 2.1.X release of Struts 2.
I've been developing Java web applications using Struts 2 for approximately 18 months, so I'm not a Struts 2 beginner. Since the book's target audience is Java developers new to Struts 2 [page 3] I tried to read the book with a newbie mindset.
Overall, I give this book 3 stars out of 5. If you're brand new to Struts 2, I'd recommend you first read Struts 2 in Action ([...]) and then pick up Apache Struts 2.
My main criticism of Apache Struts 2 (and why I don't think it's the best book for newbies) is that this book quickly skims over some critical foundation subjects such as XML configuration, convention plugin, and annotations. Without a thorough understanding of how and when to use those key Struts 2 techniques, it will be difficult for someone new to Struts 2 to actually build a web application that uses the framework and even more important trouble-shoot a problem.
The introduction to using the convention plugin and annotations is only 4 pages long. If I did not already have prior experience with those techniques I would have been lost trying to understand the examples in the following chapters. The book does provide external references at the end of each chapter where the user can go to learn more. The online documentation on the Struts convention plugin and annotations was updated in August so readers of Apache Struts 2 will find referring to that web page ([...]) very helpful.
The problem with Apache Struts 2 not providing a more complete coverage of how to configure a Struts 2 application is compounded by the code examples. In one chapter the code examples use extensive annotations, other examples just use the convention plugin, and even other examples use an XML configuration.
Another criticism I have is that (as of early September 2009) the code examples are not easy to run after you download them from the book's web site. There were some issues in the Maven configuration and the application's start page that I had to fix before I could run the projects using Maven (even though each project uses Maven and Jetty).
Also the code examples in later chapters that are focused on the continued theme of each chapter (designing a recipe web application) don't work because of a problem with the recipe form and its model and Action classes. The publisher is aware of these problems and hopefully an improved code download will be available. But again as someone new to Struts 2, being able to have trouble-free code examples out-of-the-box is important since most Struts 2 newbies are not going to have the knowledge to fix any problems.
Additionally, in some of the code examples the author uses the bang operator (!) to dynamically call a method in a Struts 2 Action class. However, I couldn't find anywhere in the text where the author explains the dynamic method invocation (which uses the bang operator). Also using the dynamic method invocation isn't a good practice for Struts 2 developers to follow ([...]). The author might have better explained and shown examples for the wildcard method selection technique.
The book could really use an appendix on using Maven to build and run the example applications. Each chapter's example is a Maven project that also uses the Jetty Servlet container. For someone who hasn't used Maven or Jetty, an appendix on how to use them to build and run the chapter examples would be important. The author states he "takes a non-committal approach to its source" [page 15]. I'm not sure what he means by that, but the easier you make for someone to get your code running (and using Maven and Jetty make that pretty easy if you're familiar with those tools) the more learning that person can accomplish.
For developers who already have experience with Struts 2, the book does provide several useful techniques. Examples of how to use the Struts 2 configuration plugin were very helpful and something I quickly applied to my own Struts 2 applications. The code examples provide insights into how to use Struts 2 annotations (though you'll need to refer to the Struts 2 online documentation to get more background).
The chapter on validation explains how to use OGNL to include dynamic information in your error messages which was something I hadn't seen before. The chapter on comprehensive testing provides an example of how to unit test a custom interceptor. I found the code hard to follow but with further study I may be able to use it to create my own unit tests.
Lastly, the code examples and book's discussion focus on the latest release of Struts (2.1.6) as of early September. That's very helpful as there are many changes from early Struts 2 releases and the post 2.1.X releases. The Struts 2 in Action book provides a good foundation, but it is getting more and more out-of-date. Additionally, if you know Maven and Jetty then running the code examples (provided the other issues I mention above are corrected) is easy.
Apache Struts 2 Web Application Development is a good book for developers already familiar with Struts 2. For Java developers brand-new to Struts 2, I recommend first reading the Struts 2 in Action book (and the latest documentation on the Struts 2 web site [...]) prior to reading Apache Struts 2.
Apache Struts 2 Web Application Development OverviewThis book takes a clear approach, focusing on one topic per chapter, but interspersing other issues in the mainline text and in chapter detours. Taking a practical approach, it discusses agile web development using Struts 2, with plenty of examples for better understanding. This book is for Java developers who are interested in developing web applications using Struts. If you need a comprehensive introduction to Struts 2.1, along with the most important aspects of additional web application development technologies, agile programming practices, tool creation, and application life cycle management this book is for you. You don't need to know JavaScript and CSS to use this book as the author will teach you the required basics. If you are a Struts 1 or WebWork user and wish to go ahead and migrate to Struts 2, this practical guide is also for you.
Want to learn more information about Apache Struts 2 Web Application Development?
>> Click Here to See All Customer Reviews & Ratings Now
0 comments:
Post a Comment