Programming Jakarta Struts
Publisher: O'Reilly Media
Released: November 2002
Pages: 464

Web tier frameworks have really taken off in the past year or so. Developers who used to spend hours and hours writing low-level features have realized the enormous benefits of using well-written frameworks to build the presentation tier so they can get to coding the "good stuff", the business logic at the core of the program.

The Struts Framework, originally created by Craig R. McClanahan and donated to the Apache Software Foundation's Jakarta project in 2000, has become one of the most popular presentation frameworks for building web applications with Java Servlet and JavaServer Pages (JSP) technology. It encourages application architecture based on the Model-View-Controller (MVC) design paradigm, colloquially known as the Model 2 approach.

As popular as Struts is becoming, the online documentation is inadequate, focusing on the most basic functionality and leaving out information crucial to developers writing today's complex web applications. O'Reilly's Programming Jakarta Struts was written by Chuck Cavaness after his internet company decided to adopt the framework, then spent months really figuring out how to use it to its fullest potential. He calls the books, "the culmination of lessons learned (the hard way) during the building of our application."

Readers will benefit from the real-world, "this is how to do it" approach Cavaness takes to developing complex enterprise applications using Struts, and his focus on the 1.1 version of the Framework makes this the most up-to-date book available.

Programming Jakarta Struts covers:

  • An overview of the concepts involved in writing web applications
  • Detailed installation and configuration instructions to get Struts up and running quickly
  • A thorough discussion of how Struts implements the Model-View-Controller pattern, and how to interface with that pattern in your own applications
  • JSP and Jakarta Tag Libraries for authoring complex web pages
  • Logging, Validation, and Exception Handling with Struts
  • Using the new Struts template framework, Tiles.
  • Writing internationalization and localization code using Struts
  • Practical, real-world best practices for web applications
Craig McClanahan, originator of Struts, says of the book, "One thing a lot of open source packages lack is a comprehensive guide to all of the features -- something that goes far enough past "hello, world" to get you into solving real application design problems, and it looks like you've hit just the right level for a lot of people."
Table of Contents
Product Details
About the Author
Colophon
Recommended for You
Customer Reviews

REVIEW SNAPSHOT®

by PowerReviews
oreillyProgramming Jakarta Struts
 
4.2

(based on 100 reviews)

Ratings Distribution

  • 5 Stars

     

    (52)

  • 4 Stars

     

    (28)

  • 3 Stars

     

    (13)

  • 2 Stars

     

    (2)

  • 1 Stars

     

    (5)

Reviewed by 100 customers

Sort by

Displaying reviews 1-10

Back to top

Previous | Next »

(0 of 2 customers found this review helpful)

 
4.0

very diffcult book.

By leejaeho

from Undisclosed

Comments about oreilly Programming Jakarta Struts:

Here is in south korea.This book is a school book in university.Of course,traslation edition.

but diffcult.

And korea language is not in orelly web site.

please make web site of korea version for many korean user.

thanks.

(3 of 4 customers found this review helpful)

 
1.0

Programming Jakarta Struts Review

By Joakim Andersson

from Undisclosed

Comments about oreilly Programming Jakarta Struts:

First I must say that I normally love O'reilly's books. I have read lots of your books and they have always been great. That's why I bought this book without even looking for reviews. This was a huge mistake since this book is the worst book I have ever read!

The problem is that I don't understand who the book is for? It's not a book to use when you want to learn Struts since the book doesn't progress (the forth chapter is a full description of the configuration file for instance, and by then you don't have a clue what all options mean). So after reading this book I had to turn to other resources to learn how Struts really works. So it wasn't for first times, maybe it works as a reference? No, I'm sorry! Chapter 8 is a good example, here the author lists some of the tags available in Struts but I don't know how these tags are selected. The form-tag is described but the text-tag isn't. What good is it to know how the form works if you don't know how to create a text field?

The reason that I write this review right now is that I just started my second project with Struts and since I had forgotten some of it since the last time I turned to this book again. After a while I was really annoyed about it and turned to the web page to see if someone else was experiencing the same problems. I was very surprised to see that the average rating was FOUR! I looked a little closer and realized that the author himself was the author of 32 reviews, and this really annoyed me!!!

My suggestion to everybody who is looking for a Struts book is, don't buy this book. My suggestion to O'reilly is, stop selling this book and write a new. This book have really damaged you reputation (at least in my company and among my friends).

 
4.0

Programming Jakarta Struts Review

By Eric Lewis

from Undisclosed

Comments about oreilly Programming Jakarta Struts:

Since I want to use the Validator outside of Struts (other guys at the office are doing Struts), I tried "Using the Validator Outside of Struts" (page 279 in my edition). It all works great, but as soon as a validation goes wrong, the message resource can't be found. I get



...

Caused by: java.lang.NullPointerException

at org.apache.struts.validator.Resources.getMessageResources(Resources.java:150)

at org.apache.struts.validator.Resources.getActionError(Resources.java:222)

at org.apache.struts.validator.FieldChecks.validateRequired(FieldChecks.java:130)

... 26 more



The guys on the Commons Validator mailing list told me that I should write all my own stuff, which is true from their point of view. But since Struts offers so many good validators, I think it would be a lost opportunity not to use them.

So, in a nutshell: When I use Struts Validators outside of Struts, how do I specify the message resources?

Can anybody help me out? Chuck? :-)

(0 of 1 customers found this review helpful)

 
5.0

Programming Jakarta Struts Review

By Chuck Cavaness

from Undisclosed

Comments about oreilly Programming Jakarta Struts:

Rob,

I did find that class, but it's not being used within the Storefront app so you should be able to delete it. It was included due to me re-using a few example classes that are in the struts download and some extra ones were in the example but werent being used.

If you have the struts binary and source distribution (which you can get from the struts site), then you will probably have all of the source that wasn't included within my WAR file.

Sorry about the mistake.

 
4.0

Programming Jakarta Struts Review

By Robert Buick

from Undisclosed

Comments about oreilly Programming Jakarta Struts:

Chuck,

Thanks for getting back so promptly.

There are a number of .class files in the storefront.war file under WEB-INF/classes that don't have correspending .java files (MyMessageResourceConfig.class is one of those). It would helpful to have all the correspending .java files so that my understanding of struts as applied to this application is aided and unimpeded.

Regards,

Rob Buick

(0 of 1 customers found this review helpful)

 
5.0

Programming Jakarta Struts Review

By Chuck Cavaness

from Undisclosed

Comments about oreilly Programming Jakarta Struts:

Rob,

I don't recognize that class as one of the ones that I created for Storefront. What package and/or directory did you find that in? What other classes are you interested in customizing?

Since Struts is open source and my stuff is through the book, you should have access to all the source files you need. Let me know what class files you need source for and I'll see what I can find out.

 
4.0

Programming Jakarta Struts Review

By Robert Buick

from Undisclosed

Comments about oreilly Programming Jakarta Struts:

I have built the storefront application and looking to extending it.

I note that there are .class files without accompanying .java files e.g. MyMessageResourceConfig.class. Are these files ommitted from the source.zip file because they exist elsewhere (that I haven't stumbled across)?

Regards,

Rob Buick

 
5.0

Programming Jakarta Struts Review

By Deepak Verma from the Columbia Java Users Group

from Undisclosed

Comments about oreilly Programming Jakarta Struts:

Great book on Jakarta Struts:

This book presents an explanation of Struts that is both easy to comprehend and one that follows the design process from beginning to end. It's a complete guide to the Struts project, taking developers through concepts, design and implementation and explains the Model 2 design pattern in depth.

Installation and setup are thoroughly documented, and every configuration option is clearly explained. JSP programming within the context of Struts is explored, with tons of practical examples that use both the standard JSP tag libraries and Struts additions. You'll also become adept at programming multitiered applications, interacting with EJBs from struts applications, and handling complex validation and logging through the Struts provided packages and tools. Also covers how to create your own rules and to use it outside of Struts.

Whether you've been struggling with Struts, or you want to get started in Model 2 programming, or you're an advanced Struts programmer wanting to fully exploit this powerful framework, overall I'd say this is an excellent resource.

 
4.0

Programming Jakarta Struts Review

By Brian Hasslinger

from Undisclosed

Comments about oreilly Programming Jakarta Struts:

Solid book, thank you for not having a pet store example. Please incorporate into the downloadable examples area the fix to the problem noted by Tingbin below (it works on Orion but OC4J fails):

If you run the smaple Storefront and you cannot get any item detail page. The problem is that in ItemDetail.jsp line # 69, there is a redundant paramId in that . Simply delete that one, then you will go.

Brian

 
4.0

Programming Jakarta Struts Review

By Kenny

from Undisclosed

Comments about oreilly Programming Jakarta Struts:

Mr.Cavaness,

Thank you for your reply.

Guess what? I got it working!!!

I was using Eclipse to build my Web application and that was the problem.

I didn't know that I shouldn't be putting files directly into the

WEB-INF/classes directory when building Web applications using Eclipse( and other IDEs).

I put the properties file in the WEB-INF/src directory

(Eclipse automatically copies the properties file in the WEB-INF/classes directory) and everything worked perfectly.

Displaying reviews 1-10

Back to top

Previous | Next »

 
Buy 2 Get 1 Free Free Shipping Guarantee
Buying Options
Immediate Access - Go Digital what's this?