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
What is the purpose of form-be tag in struct-config.xml?
Does struts include its own unit tests?
Is struts 1 still supported?
What is the forward action utilized for?
What is validate() and reset() functions?
How many Action classes have been used in your project? Differences between struts 1.1 and 1.3?
Why it called struts?
What is the purpose of @expressionvalidator annotation?
List some struts tag libraries?
What do struts do?
What are the two different types of validations that the validator framework supports?
Which tag is used to declare constants in struts xml?
How the flow of various requests happens in struts application?
What is use of i18n interceptor?
In how many ways duplicate form submission can occurs?