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
Do we need to pay the struts if being used in commercial purpose?
Define struts?
What is the purpose of execute method of action class?
What is the purpose of @key annotation annotation?
Explain about how requests from the client are sent?
Why do we need mapdispatchtoprops?
What are the core classes of struts?
Can we have more than one struts-config.xml file for a single struts application?
What is actionservlet?
When should be opt for struts framework?
What is form bean in struts?
What are struts in java?
What are the two types of validations supported by validator framework?
What are the various struts tag libraries?
What is apache struts vulnerability?