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 / sandeep
We can use setLoginTimeout() method of DriverManager
Class..to specify the amount of time it will wait for the
connection and if doesn't get any connection then we can
handle it..redirecting it to some error pages as we usually
do to forward to a specific page...
| Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
What is front controller in struts?
What is the difference between struts and spring?
What are the bundled validators?
How long do struts last?
What is actioninvocation?
Is struts compatible with other java technologies?
How can we work with error tags?
What are disadvantages of Struts?
How struts2 supports internationalization?
What is the forward action utilized for?
What is used to display the intermediate result in an interceptor?
How to use dispatchaction?
What are the steps required for setting up validator framework in struts?
How to combine the struts with velocity template?
Why is it called struts?