jQuery in Action, 3rd edition
The moose likes Struts and the fly likes Exception handling in struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Exception handling in struts" Watch "Exception handling in struts" New topic
Author

Exception handling in struts

p hasini
Ranch Hand

Joined: Oct 24, 2009
Posts: 92
When connecting to the database,if database server is
down,how can we handle this exception in struts and how to
send an error message to the user
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9405
    
  20

Whether the database server is down or there is any other error, an exception will be raised at runtime. You can either catch the exception and handle it in whichever way you want, or leave the exception unhandled, and define an exception page for your application...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Exception handling in struts
 
jQuery in Action, 3rd edition