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

How can we display all validation errors to user on jsp page?

1044


Where can I get help with struts?

945


What are the some useful annotations introduced in struts2?

933


How an actionform bean is created?

911


Difference between html tags and struts specific html tags

857


What are the differences between http direct and http indirect?

905


What are the custom tags?

862


Where can I get a copy of struts?

889


What is the purpose of @before?

932


Explain about how requests from the client are sent?

917


What do you mean by the abstract package in struts2, and what is its utilization?

886


What are construction struts?

869


How tag libraries are defined in Struts?

944


What is the purpose of global-forwards tag in struct-config.xml?

919


What is xml based validation in struts2?

981