Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Exception handling in struts  RSS feed

 
p hasini
Ranch Hand
Posts: 92
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9608
36
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!