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 |
What do you mean by inner class and anonymous class?
How to explain Software Bank Loan descriptions
0 Answers Kekran Mekran, Wipro,
Can we have different controllers in one struts app?
What is dispatch action class?
what are the disadvantages of MVC architecture
how to write my own Action servlet by extending pre-defined Action servlet in struts config.
Explain the complete struts validator framework.
How to get data from the velocity page in a action class?
What is the significance of logic tags in Struts?
Who wrote struts?
what is tiles in struts?
what is the disadvantage of struts frame work?