Learn more Download now Shop now Shop now Shop now Shop now Shop now Shop now Shop now Shop now Learn More Shop now Learn more Shop Fire Shop Kindle Learn More Shop now Shop now Learn more


on 23 November 2008
* Stripes is a great modern MVC web framework similar to WebWorks/Struts 2 in that it uses interceptors as part of it's architecture.
* It makes less use of XML and more use of Annotations. URL's that will be forwarded are encoded in the action classes themselves. So you don't end up with the equivalent of a struts.xml or struts-config.xml with global forwards or action mappings as in classic Struts.
* There few disadvantages I've seen with Stripes over Struts 2 are:
** Struts 2 wrappers Servlet objects like the request/response and uses Hashmaps to represent request parameters. Stripes doesn't sheild you from this so elegantly and makes use of them directly with things like Exceptions. This makes testing dependent upon a container or specialised mock implementation libraries.
** Because OGNL is used with Struts 2, you are not constrained by the MessageFormatter limit on the number of parameters passed.
** Struts 2's 'themes'. This provides continuity and eliminates the drudgery of manually providing the plumbing for things like Form layout.
* Other than that, the book illustrated several benefits Stripes I've not seen covered in Struts 2/Webwork in the area of security.
** Binding of properties is properly locked down by use of access modifiers and annotations.
** The book shows how to guard against Cross Site Scripting attacks. (I don't know why this wasn't implemented as an interceptor. i.e. XMLEscaping chevrons in form input to stop malicious Javascript code from running).
** Stripes also has a handy mechanism to encrypt request parameters.
* The book illustrates Stripes by providing a web based email client. It starts out by mocking the DAO's, but as the book progresses shows how to integrate with JPA/Hibernate, Spring/Guice and Ajax via Prototype/jQuery. There's a section on testing including Mockito, and the book uses DisplayTag for tabular lists of data.
* Frederic also illustrates how create some excellent abstract base classes through use of Generics which I found educational in its own right.
* Coverage of i18n was better covered that any book on a web framework I've yet seen. It even went down to the level of translating text within controls.
* There is also good advice on protecting against double submits and browser back.
* Stripes also facilitates:
** wizard type functionality.
** can provide the equivalent of Sitemesh/Tiles without need for third party jars. It does show how to work with these too.
* I particularly enjoyed reading the sidebars from Tim Fennell the Stripes architect. Hearing things from two experts perspectives was a novel approach that worked well.
* It's a sound book which I wholeheartedly recommend. It's a fast paced, factual and devoid from fluff.
* Depending on the itch you have to scratch...
** If security is more of an issue to you I'd recommend Stripes. (Update: For Struts 2 there is now the HDIV plugin that resolves this)
** If automating form layout and shielding from the servlet for testing, I'd recommend Struts 2.
** Either way this is a great technology worth adding to your repertoire.
* There is also a minor logic error on P205. Should check for duplicate aliases in "add mode".
* My only other minor gripe with th book was the cover could have been more substantial.
0Comment| One person found this helpful. Was this review helpful to you? Report abuse
on 26 February 2009
I received this book few days before Christmas, and I'm now really impressed: in few weeks, following this beautiful manual, I got all the necessary information and skills I need to start using the Stripes Framework for my own projects!
I successfully implemented also the Stripersist library and Hibernate, and everything is working fine from the beginning.
Stripes is a recent tool, but we are lucky because the official website is rich of useful information and the documentation is very accurate; we are lucky because Stripes is very powerful but also extremely simple, and Frederic Daoud did a fantastic work writing this book!
It's very well organized, introducing components and arguments of the framework in a logic and developer-friendly way.
Chapters on Layout Reuse, Custom Messages and Persistance are absolutely stunning, definitively one of the best tecnical book I have read in the last year!
On the Pragmatic Programmer's web site you can find the zipped source code with all the book's examples: it's useful to keep everything under control, looking at the entire class code, following the changes introduced in the book.
0Comment|Was this review helpful to you? Report abuse
on 13 July 2015
This book isn't great. The examples do not match the source code so if you're working through the book, you miss out key information. I've tried copying and pasting everything, but the examples throw all kinds of errors.

Don't waste your money. Try a different framework.
0Comment|Was this review helpful to you? Report abuse


Need customer service? Click here