This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes exception handling best practices in struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "exception handling best practices in struts" Watch "exception handling best practices in struts" New topic
Author

exception handling best practices in struts

Poorav Chaudhari
Ranch Hand

Joined: Sep 17, 2002
Posts: 50
Hi,
Can somebody give me pointers (or point me) to how to do exception handling in struts. what is a good practise to follow.
For example let's say I have a simple web application, with 2 JSPs (personaldata.jsp, and viewdata.jsp), an action class CreatePersonalInfo, a business object for validating the information, and finally a data access object that handles the database transaction. In this case what kind of exception should be thrown by the DAO, or the BO, etc.
I am looking for some good guidelines to follow. I started of thinking that I had a good idea of how to do this, but i seem to be creating some spaghetti code.
Appreciate your help.
Thank you
Poorav


Poorav Chaudhari
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: exception handling best practices in struts
 
Similar Threads
struts 1.2 and declarative exception handling
Struts 2 Learning
How to do Exeption Handling in Multi Threaded Eniv
exception handling approach for j2ee web apps
Model question