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?

Answers were Sorted based on User's Feedback



when connecting with the database,if database server is down,ho can we handle this exception in str..

Answer / madhu

Just create meaningful exception class (ie.
DatabaseUnavailableException) and catch it in your perform
() method. You can
then redirect to an error page from there.

Is This Answer Correct ?    4 Yes 0 No

when connecting with the database,if database server is down,ho can we handle this exception in str..

Answer / balaji

Create user defined exception catch it and redirect it to
error page

Is This Answer Correct ?    1 Yes 0 No

when connecting with the database,if database server is down,ho can we handle this exception in str..

Answer / 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

when connecting with the database,if database server is down,ho can we handle this exception in str..

Answer / manjunath

by using database unavailable exception class()..

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More Struts Interview Questions

How struts 2 validation works?

0 Answers  


how to develop the submit and search operations in single jsp using struts?

0 Answers   Wipro,


What is the purpose of @typeconversion annotation annotation?

0 Answers  


how to implement singletun design patteren in struts?

5 Answers   HCL,


What is difference between lookupdispatchaction and dispatchaction?

0 Answers  


What is the actionform?

0 Answers  


where you use thread in your java project?

1 Answers   Cap Gemini,


What is the use of reset method of ActionForm class?

0 Answers  


What should be the name of xml file used for validation in struts?

0 Answers  


What does i18n interceptor?

0 Answers  


struts comes under which layer of three tire architecture in real time projects plz i need explaination?

10 Answers   Infinite Computer Solutions, TCS,


How you will enable front-end validation based on the xml in validation.xml?

0 Answers  


Categories