7 of 8 people found the following review helpful:
2.0 out of 5 stars
Defeats its own goals, 25 April 2006
By Neil Roberts - Published on Amazon.com
This review is from: Learning Jakarta Struts 1.2: A Concise and Practical Tutorial (Paperback)
The author goes in to some detail about the philosophy of the book, how he intends to present it as a "action" oriented book, rather than a list of instructions. That's fine, but the actions that he presents are terrible.
I bought this book mostly to see what's changed since Struts 1, which is what I'm familiar with. I'm somewhat familiar with Struts 1.1, I've messed with DynaActionForm and some of the new validation features. So I know what Struts is capable of... and it's not this.
Struts is an excellent controller (the C in MVC), and it has a lot of really handy tags that you can use in your JSP pages. Where the author completely misses the mark is that he concentrates so heavily on the tags and very little on what makes Struts really powerful... its controller. That's not to say that he only concentrates on tags, he goes into great detail about integrating a database, writing a properties singleton, and other garbage that has nothing to do with struts.
He frequently uses a jsp page as the URL to visit to access a page. A good Struts implementation should rely COMPLETELY on Struts as its controller. This means that all of his pages should have been *.do pages. Not only does this allow for pre-render logic, but it means that you can switch out what JSP page you want to use without having to change your URL. It's pretty much the foundation of struts, and yet it's completely lost here.
Another thing I found missing was action-specific forwards. His action tags were almost all single, closed <action/> tags with no content in between. He opted instead to use global forwards for everything.
I'm not a genius, I obviously have something to learn about Struts if I'm still buying books. But Struts is about making things clean, abstracting the Model 1 grossness that JSPs introduced. This book is a piecemeal organization of some capabilities of Struts. Not only is this book lacking on any high-level struts capabilities, but I think it actually teaches bad programming.
6 of 7 people found the following review helpful:
4.0 out of 5 stars
Does well to get you quickly coding in Struts..., 24 Sep 2005
By Thomas Duff "Duffbert" - Published on Amazon.com
This review is from: Learning Jakarta Struts 1.2: A Concise and Practical Tutorial (Paperback)
If you already have a Java background and are looking to learn how to use Struts for web apps, a good concise tutorial title would be Learning Jakarta Struts 1.2 by Stephan Wiesner.
Contents: Introduction to Struts; Hello Struts; The Struts Shop; Internationalization and Taglibs; Logging and Configuration; Forms; Logic; Exceptions; Controller and Templates; Putting It All Together; Struts Validator and Plug-In Classes; JSTL; Tools and Tricks; Solutions; Glossary; Literature; Index
This is a 200 page tutorial that assumes a basic background in your IDE of choice and Java in general. It's written well, but there's not a lot of hand-holding going on. The author dives right in and brings you up to speed on the concepts you need to know to work with Struts. The associated platform choices are all open source (like Tomcat and MySQL), so it won't cost you anything to get started. Conversely, the coverage of these other software packages aren't covered in great detail. You're told where you can download the software, and quickly how to install it. If you have problems, you'll probably need to check out other sources to fix them. The book follows a common development project throughout (a book store application), so it does a nice job of building on itself as it goes along. Couple that with the exercises sprinkled throughout the book, and you should be able to learn enough to become competent on the basics. For long-term Struts work, you'll probably want to get a Struts reference book or check out the project website. Still, as a first book to learn by doing, Learning Jakarta Struts fairs well...
4 of 6 people found the following review helpful:
4.0 out of 5 stars
A welcome introductory book to Struts, 30 Oct 2005
By Andrew Monkhouse - Published on Amazon.com
This review is from: Learning Jakarta Struts 1.2: A Concise and Practical Tutorial (Paperback)
I enjoyed this book, both Mr. Wiesner’s style of writing, and the way topics were introduced. The chapters are easy to read, and I never felt I was being lectured to. In addition, Mr. Wiesner has kept information relevant to the topic at hand without digressing into background information that might confuse newcomers. From as early as the second chapter you are developing in Struts, using a simple internationalization example. The chapters gradually build up from there, each one introducing new concepts in easy to read sections. By the end of the book, you will have created a simple bookstore application.
Mr. Wiesner assumes knowledge of Java, JSP, and Servlets, and expects you to have set up your JDK, Web Container, and Database before beginning. With this rudimentary knowledge, his introduction to Struts makes sense and examples are given demonstrating the differences between calling standard Java code from within a JSP and using the Struts equivalents.
My only complaints with this book are that the downloadable source code has not been converted into English (while the source code in the book has been) - this does not cause a major problem since the downloadable code is still very readable, but it does mean that the downloadable code does not exactly match the published code. Another issue is that the errata page does not appear to be regularly updated.
All in all, a very good book, and a welcome introductory book to Struts.