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 the purpose of @validations annotation?
What is the default suffix for struts2 action uri ?
Explain about logic match tag?
How to handle exceptions in structs?
What does action do in struts?
When should we use SwtichAction?
What is the use of jsonvalidation in struts?
What is actionmapping?
Does apache struts run on windows?
What is struts and springs in java?
What are the benefits of Struts framework?
What are action classes in struts?
What do you know about validation plugin ?
Is struts 1 still supported?
What configuration files are used in struts?