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

Why are struts tightly coupled?

943


How exceptions are handled in struts application?

1110


How struts control data flow?

1048


How many struts config file can be created in struts?

851


What is the use of forwardaction?

974


Can I have html form property without associated getter and setter formbean methods?

962


Is struts mvc framework?

876


How to use forward action to restrict a strut application to mvc?

1004


If the framework doesn’t do what I want, can I request that a feature be added?

900


What are the classes used as part of struts framework ?

917


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

1024


What is the default location of result pages and how can we change it?

968


What is the purpose of @conversionerrorfieldvalidator annotation?

1128


Explain about the tag?

1054


What is the life cycle of actionform?

977