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?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
Answer / manjunath
by using database unavailable exception class()..
| Is This Answer Correct ? | 0 Yes | 3 No |
I have 4 jsp pages .At last page we have a submit button when we click it it will store all jsps data which we provide will store into database. how we can make it possible
How can we group related actions in one group in Struts?
Can you explain custom tag?
Explain the difference between jakarta struts and apache struts?
What is the purpose of @validations annotation?
What is switchaction?
What is the use of interceptor?
in struts without integrate hibernate how to use directly explain?
What is the purpose of form-beans tag in struct-config.xml?
What is http forward?
What is struts validator framework?
How an actionform bean is created?