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

What are the classes used in struts?

1041


Which interceptor is responsible for i18n support?

866


What is action class? What are the types of action class?

915


Which tag is used to declare constants in struts xml?

893


How to work with error tags?

902


What does the term struts mean?

936


What is actioncontext?

898


What is strut action mapping?

929


Why do we need struts?

878


What does modeldriven interceptor?

1006


What does execandwait interceptor?

965


Explain about token feature in struts?

927


What is the use of execAndWait interceptor?

987


Explain about the validation steps which have to be carried during validation of client-side address?

929


What’s the difference between validation.xml and validator-rules.xml files in struts validation framework?

957