Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

when connecting with the database,if database server is
down,ho can we handle this exception in struts,how can we
send error message to the user?

Answer Posted / sandeep

We can use setLoginTimeout() method of DriverManager
Class..to specify the amount of time it will wait for the
connection and if doesn't get any connection then we can
handle it..redirecting it to some error pages as we usually
do to forward to a specific page...

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between struts and spring?

993


How we can configured action mapping in struts?

1059


What are the two types of validations supported by validator framework?

1069


Why are springs better than struts?

1244


What does it cost to replace struts?

1025


What does the term struts mean?

1038


How struts 2 validation works?

1150


Why are frameworks used?

1049


What is struts in j2ee?

986


Which design pattern the interceptors in struts2 is based on?

980


What are the life cycle methods of interceptor?

1024


What is request processor and how does it relates to action mapping?

1088


How can we handle exceptions thrown by application in Struts2?

996


What is struts-default package and what are it’s benefits?

1175


how to debug struts project in netbean ?

2417