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 is meant by custom tags?
Please can you tell me ,where can we used the MVC other than web applications.
drawback of Validation Framework where and how to write the connection pool object in the programe how to debug the programe and application in struts without using eclips
In strurt why w use two differnt files web.xml and strut config.xml?
Do I have to credit struts on my own website?
session menagement in servlets explaion briefly?
What is the use of ActionErrors in Struts
How to forward from Array List to Jsp in Struts ActionServlet class?
What's the purpose of execute method of action class?
wahts the diif between Mvc1 and Mvc2?
Can we write Structs application without using Action Class directly or indirectly(extends Action class)
What is struts-default package and what are it’s benefits?