This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
The moose likes Struts and the fly likes Exception handling in struts Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Reply 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
Saloon Keeper

Joined: Aug 03, 2008
Posts: 9191
    
    2

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 agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Exception handling in struts
 
Similar Threads
custom error page
Using struts 1.2 how to upload a file into database and download it
Exception Handling
Database checkup
with out using global execeptions tag