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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do we need to pay the struts if being used in commercial purpose?

995


Define struts?

1037


What is the purpose of execute method of action class?

978


What is the purpose of @key annotation annotation?

1072


Explain about how requests from the client are sent?

994


Why do we need mapdispatchtoprops?

865


What are the core classes of struts?

1030


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

924


What is actionservlet?

992


When should be opt for struts framework?

1044


What is form bean in struts?

949


What are struts in java?

906


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

1018


What are the various struts tag libraries?

935


What is apache struts vulnerability?

923