Struts Recipes, Manning

Microsoft .NET Framework, ASP.NET, Visual C# (CSharp, C Sharp, C-Sharp) Developer Training, Visual Studio


Jump to: navigation, search
  Title:  Struts Recipes
  Author(s):  George Franciscus, Danilo Gurovich
  Edition:  Manning Publications; 1st edition (December 28, 2004)
  Format:  Paperback: 520 pages
  ISBN:  1932394249
  Overall Rating:  Image:stars4.gif The Bottom Line
C# Online.NET:Reviews: Book Reviews  •  Educ./Train. Reviews  •  Software Reviews  •  Top 10 Books

Contents


C# Online.NET Book Review

Struts is an open-source framework for developing J2EE Web applications using the Model-View-Controller (MVC) design paradigm. Under MVC (Model 2), a Java servlet manages business logic execution while presentation logic resides mainly in JavaServer Pages. Struts both uses and extends the Java Servlet API. The Apache Struts project comprises two distinct frameworks: the Struts Action Framework—the original request-based framework—and the Struts Shale Framework—a component-based framework for JavaServer Faces.

First, my prejudice —I love programming recipe books. A lot of the programming I do is basically cut-and-paste. This is, partly, because I do a lot of one-offs and, partly, because I am often working in software in which I am less than expert. Recipe books are perfect for cut-and-paste programming.

This book comprises a valuable set of practical solutions—recipes—which can be used as templates which you can modify to address your particular needs and problems. Every recipe features a clear problem statement and a series of easily followed steps to implement the solution. Each recipe is organized as follows:

  • Problem
  • Background
  • Recipe
  • Discussion
  • Related recipes
  • References

To make full use of the book, you should have both Java and Struts programming skills. Many of the recipes are more proof-of-concept than complete recipe. But, an experienced Struts developer can easily fill in the blanks.

Also, the book offers a lot in the areas of good design and best practices. Learn to secure your Struts application. Learn to layer your Struts application. Learn to unit test your Struts application. Learn how to handle exceptions in Struts. Learn to create alternative PDF or XSL views. Learn how to integrate your Struts application with the Hibernate OR mapping tool.

Quite a few errors slipped past the technical reviewers and editors. But, they do not ruin the recipe.


Bottom line

Struts Recipes is a great collection of mini-solutions to specific real world Struts problems.

From the back cover

This book is for developers and architects with real Struts work to do. It offers a broad collection of practical solutions complete with detailed code listings that will save you time and money. Each recipe clearly defines the problem it solves, gives you the background you need, and discusses the practical implications of adopting the solution. Many recipes point out little-known "gotchas" which will save you from needless grief. This book introduces you to Struts best practices so you can make your applications secure, robust, and maintainable.

Techniques presented in this book have gone through the trial by fire of real-life enterprise development and deployment you can rely on them with confidence.

A Sampling of What's Inside

  • How to automate your projects using Ant builds
  • Cross validate your forms with a pluggable validator
  • Unit test your app for function, performance, and coverage
  • Make your application secure
  • How to deal with exceptions
  • Generate alternate views using PDF and XSL
  • Refine your UI with Struts-Layout
  • How to design a layered Struts application
  • Understand the ins and outs of the Tiles Controller
  • Use a DB in your message-resource
  • Integration with Hibernate

About the author(s)

George Franciscus is a J2EE consultant and Struts authority. He is a coauthor of Manning's Struts in Action.

Danilo Gurovich is a Manager of Web Engineering at an eCommerce Company. He has designed eCommerce and ERP/EAI Struts applications, and led teams who built them.

Table of Contents (abbreviated)

1 Basic recipes
2 Forms and form elements
3 Struts tag libraries
4 The Struts-Layout tag library
5 Validation within the Struts framework
6 Internationalization
7 Logging in, security, and guarding
8 Advanced recipes
9 Testing



Personal tools