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
Why are struts tightly coupled?
How exceptions are handled in struts application?
How struts control data flow?
How many struts config file can be created in struts?
What is the use of forwardaction?
Can I have html form property without associated getter and setter formbean methods?
Is struts mvc framework?
How to use forward action to restrict a strut application to mvc?
If the framework doesn’t do what I want, can I request that a feature be added?
What are the classes used as part of struts framework ?
How you will enable front-end validation based on the xml in validation.xml?
What is the default location of result pages and how can we change it?
What is the purpose of @conversionerrorfieldvalidator annotation?
Explain about the
What is the life cycle of actionform?