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

Can we have more than one struts-config.xml file for a single struts application?

934


Why we use struts over servlets?

1071


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

1105


What is apache struts cve 2017 5638?

977


Mark the differences between html tags and strut specific html tags.

973


while working struts in intellij 7.0error unable to initialize tld location cache: zip file is closed is displayed anybdy can answer me immdialy .ungert

2556


Explain about how requests from the client are sent?

1013


What is the purpose of action-mappings tag in struct-config.xml?

961


What is the purpose of @doublerangefieldvalidator?

1065


How is token generated?

1027


Explain about the process of functioning of the struts program?

1040


What does apache struts do?

917


How to build struts application in eclipse?

999


What is front controller in struts?

1000


Whats the difference between the default namespace and the root namespace?

982