Chapter 10 of the Struts book has been posted for public review on TheServerSide. This chapter will look at how you can properly use the Java exception handling mechanism within your Struts applications to help make your applications more industrial-strength and allow them to gracefully respond when things don't' go as expected.
Check out Jakarta Struts Book Review Project.
-
Struts Chapter 10: Exception Handling, Posted for Public Review (11 messages)
- Posted by: Floyd Marinescu
- Posted on: May 23 2002 13:34 EDT
Threaded Messages (11)
- Struts Chapter 10: Exception Handling, Posted for Public Review by tyler durden on May 23 2002 18:47 EDT
- Struts Chapter 10: Exception Handling, Posted for Public Review by Chuck Cavaness on May 23 2002 19:43 EDT
- Struts Chapter 10: Exception Handling, Posted for Public Review by Floyd Marinescu on May 23 2002 21:04 EDT
- Struts Chapter 10: Exception Handling, Posted for Public Review by tyler durden on May 25 2002 01:14 EDT
- Struts Chapter 10: Exception Handling, Posted for Public Review by Venkat MS on May 24 2002 02:52 EDT
- Struts Chapter 10: Exception Handling, Posted for Public Review by Chuck Cavaness on May 24 2002 05:42 EDT
- Struts Chapter 10: Exception Handling, Posted for Public Review by Jorge DeFlon on May 24 2002 01:21 EDT
- Struts Chapter 10: Exception Handling, Posted for Public Review by Chuck Cavaness on May 24 2002 05:42 EDT
- Struts Chapter 10: Exception Handling, Posted for Public Review by Nancy Beck on May 29 2002 12:40 EDT
- Struts Chapter 10: Exception Handling, Posted for Public Review by Chuck Cavaness on May 29 2002 16:11 EDT
- Struts Chapter 10: Exception Handling, Posted for Public Review by Michelle Zaremskas on May 30 2002 09:59 EDT
- Struts Chapter 10: Exception Handling, Posted for Public Review by Chuck Cavaness on May 30 2002 10:06 EDT
-
Struts Chapter 10: Exception Handling, Posted for Public Review[ Go to top ]
- Posted by: tyler durden
- Posted on: May 23 2002 18:47 EDT
- in response to Floyd Marinescu
Would someone post a link please? -
Struts Chapter 10: Exception Handling, Posted for Public Review[ Go to top ]
- Posted by: Chuck Cavaness
- Posted on: May 23 2002 19:43 EDT
- in response to tyler durden
-
Struts Chapter 10: Exception Handling, Posted for Public Review[ Go to top ]
- Posted by: Floyd Marinescu
- Posted on: May 23 2002 21:04 EDT
- in response to tyler durden
Tyler,
Are you working with some kind of browser that can't navigate HTML links? How can I help you?
Floyd -
Struts Chapter 10: Exception Handling, Posted for Public Review[ Go to top ]
- Posted by: tyler durden
- Posted on: May 25 2002 13:14 EDT
- in response to Floyd Marinescu
Opps!. I didn't see the link. My mistake.
Sorry. -
Struts Chapter 10: Exception Handling, Posted for Public Review[ Go to top ]
- Posted by: Venkat MS
- Posted on: May 24 2002 02:52 EDT
- in response to Floyd Marinescu
What about chapters 7/8 and 9? -
Struts Chapter 10: Exception Handling, Posted for Public Review[ Go to top ]
- Posted by: Chuck Cavaness
- Posted on: May 24 2002 05:42 EDT
- in response to Venkat MS
They are coming. Chapter 7 should be posted sometime next week. I wrote chapter 10 awhile back and saw no reason not to post it since it has no dependencies on 7,8, or 9.
Chapter 7 is taking me a little longer than I had hoped. It's a very important chapter and I don't want to screw it up. Instead of making everyone wait the extra time without any new chapters, I went ahead and posted 10.
It's not uncommon for books of this sort to be written out of order. There are a few others that I will jump ahead and finish and then come back to earlier ones.
Sorry for the confusion,
Chuck -
Struts Chapter 10: Exception Handling, Posted for Public Review[ Go to top ]
- Posted by: Jorge DeFlon
- Posted on: May 24 2002 13:21 EDT
- in response to Chuck Cavaness
Excellent work,
I am devouring all the chapters and I am anxious to get the rest of them (and the book of course).
Congratulations! keep the good work.
( I will send my comments as requested)
-
Struts Chapter 10: Exception Handling, Posted for Public Review[ Go to top ]
- Posted by: Nancy Beck
- Posted on: May 29 2002 12:40 EDT
- in response to Floyd Marinescu
Chuck, will you post source code soon? It's getting a little hard to follow; there are more and more references to classes that we can't see :(
I am finding this book to be the best resource yet for Struts 1.1.
I can't wait for chapter 7!
Thanks. -
Struts Chapter 10: Exception Handling, Posted for Public Review[ Go to top ]
- Posted by: Chuck Cavaness
- Posted on: May 29 2002 16:11 EDT
- in response to Nancy Beck
I will post the storefront application, in all it's ugly glory with chapter 7. Keep in mind that the code will most likely change (more functionality) by the time the book is complete. So, everyone will have to accept the code is not finished.
Chapter 7 is just about finished. I'm just spending a couple of days editing it, trying to catch the typos that I seem to like so well :) Hopefully by the weekend I can get it posted.
Thanks for the kind words about the material!
Chuck -
Struts Chapter 10: Exception Handling, Posted for Public Review[ Go to top ]
- Posted by: Michelle Zaremskas
- Posted on: May 30 2002 09:59 EDT
- in response to Floyd Marinescu
Do you have any opinions on the use of Struts ActionErrors in the Model Layer? In other words, would you encourage having business processes setting ActionErrors based on conditions that occur during a given process. -
Struts Chapter 10: Exception Handling, Posted for Public Review[ Go to top ]
- Posted by: Chuck Cavaness
- Posted on: May 30 2002 10:06 EDT
- in response to Michelle Zaremskas
Honestly I would not recommend doing that. The main reason is that coupling the Struts framework to the model layer, which might cause a problem with portability down the road. If you switched to another presentation framework, the business layer would have to be changed. The presentation layer should have a dependency on the model layer, not the other way around.
The approach I would recommend is to let the business layer throw application (business) exceptions. Either catch these in your Action classes and create the appropriate ActionMessage/ActionError objects for them. Or even better, take advantage of the declarative exception handling capabilities added in 1.1 and let the framework do most of the work.
The later is the approach that I've used recently in a big application and it works great.
Chuck