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

How to handle exceptions in structs?

1136


How can we handle exceptions thrown by application in Struts2?

948


What are the applications of struts?

963


How an actionform bean is created?

970


What design patterns are used in struts?

1013


What is the design role played by struts?

1018


Can you give an overview of how a struts application flows?

957


What is the difference between validation.xml and validator-rules.xml files in struts?

920


How struts control data flow?

1112


What are disadvantages of Struts?

1048


What do you mean by actionservlet?

993


What are the bundled validators?

1016


How can we display all validation errors to user on jsp page?

1087


What is the difference between requestaware and servletrequestaware interface?

1050


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

1007