1.

How Exceptions Are Handled In Struts Application?

Answer»

Exceptions are handled in struts by using any one of the following TWO ways:
Programmatically handling: In this EXCEPTION are handled by using try and catch BLOCK in program. Using this programmer can define how to handle the situation when exception arises.
Declarative handling: In this exception handling is done by using the XML FILE. Programmer defines the exception handling logic in the XML file. 
There are two ways of defining the exception handling logic in the XML file:
1.Global Action SPECIFIC Exception Handler Definition.
2.Local Action Specific Exception Handler Definition.

Exceptions are handled in struts by using any one of the following two ways:
Programmatically handling: In this exception are handled by using try and catch block in program. Using this programmer can define how to handle the situation when exception arises.
Declarative handling: In this exception handling is done by using the XML file. Programmer defines the exception handling logic in the XML file. 
There are two ways of defining the exception handling logic in the XML file:
1.Global Action Specific Exception Handler Definition.
2.Local Action Specific Exception Handler Definition.



Discussion

No Comment Found