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
What are the classes used in struts?
Which interceptor is responsible for i18n support?
What is action class? What are the types of action class?
Which tag is used to declare constants in struts xml?
How to work with error tags?
What does the term struts mean?
What is actioncontext?
What is strut action mapping?
Why do we need struts?
What does modeldriven interceptor?
What does execandwait interceptor?
Explain about token feature in struts?
What is the use of execAndWait interceptor?
Explain about the validation steps which have to be carried during validation of client-side address?
What’s the difference between validation.xml and validator-rules.xml files in struts validation framework?