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 / balaji

Create user defined exception catch it and redirect it to
error page

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why are frameworks used?

742


What is the difference between filters and interceptors ?

716


Explain the core end goal while using java struts?

695


What are the components of struts framework?

775


What is filter dispatcher in struts?

696


What is the use of forwardaction?

720


What are the advantages of spring mvc over struts mvc?

662


Explain about tiles?

782


What are the some useful annotations introduced in struts2?

756


Why do the struts tags provide for so little formatting?

749


What is the use of interceptor?

701


Which tag is used to declare constants in struts xml?

663


How you will enable front-end validation based on the xml in validation.xml?

762


Explain about the tag?

823


Are struts and shocks the same?

669