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 front controller in struts?

988


What is the difference between struts and spring?

934


What are the bundled validators?

1010


How long do struts last?

933


What is actioninvocation?

944


Is struts compatible with other java technologies?

953


How can we work with error tags?

985


What are disadvantages of Struts?

1035


How struts2 supports internationalization?

1110


What is the forward action utilized for?

1083


What is used to display the intermediate result in an interceptor?

946


How to use dispatchaction?

1035


What are the steps required for setting up validator framework in struts?

1012


How to combine the struts with velocity template?

940


Why is it called struts?

950