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
How can we display all validation errors to user on jsp page?
Where can I get help with struts?
What are the some useful annotations introduced in struts2?
How an actionform bean is created?
Difference between html tags and struts specific html tags
What are the differences between http direct and http indirect?
What are the custom tags?
Where can I get a copy of struts?
What is the purpose of @before?
Explain about how requests from the client are sent?
What do you mean by the abstract package in struts2, and what is its utilization?
What are construction struts?
How tag libraries are defined in Struts?
What is the purpose of global-forwards tag in struct-config.xml?
What is xml based validation in struts2?