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
How to handle exceptions in structs?
How can we handle exceptions thrown by application in Struts2?
What are the applications of struts?
How an actionform bean is created?
What design patterns are used in struts?
What is the design role played by struts?
Can you give an overview of how a struts application flows?
What is the difference between validation.xml and validator-rules.xml files in struts?
How struts control data flow?
What are disadvantages of Struts?
What do you mean by actionservlet?
What are the bundled validators?
How can we display all validation errors to user on jsp page?
What is the difference between requestaware and servletrequestaware interface?
Do we need to pay the struts if being used in commercial purpose?