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 / 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 |
Post New Answer View All Answers
How does one create an action in struts 2?
What is discontinuous strut?
What is difference between lookupdispatchaction and dispatchaction?
What are the steps used to setup dispatch action?
while working struts in intellij 7.0error unable to initialize tld location cache: zip file is closed is displayed anybdy can answer me immdialy .ungert
How can we work with error tags?
What is the use of interceptor?
What is apache struts framework?
What design patterns are used in struts?
What are different Struts2 tags? How can we use them?
What does i18n interceptor?
What is the purpose of struts.properties in struct2?
What is the use of forwardaction?
What is the use of web xml in struts2?
Why is action servlet a singleton in struts?