What is declarative exception handling in Struts ?

When logic for exception handling is defined in struts-config.xml or within the action tag, it’s known as declarative exception handling in Struts. In the following example, we have defined exception in struts-config.xml file for NullPointerException:
    <exception key="test.key"   Type="java.lang.NullPointerException"
      Path="/WEB-INF/errors/error_page.jsp" />

Enter your email address to get our daily JOBS & INTERVIEW FAQ's Straight to your Inbox.

Make sure to activate your subscription by clicking on the activation link sent to your email