How are exceptions handled in struts?
-
Declarative
-
Structured
-
Programmatic
-
Both 1 and 3
D
Correct answer
Explanation
Struts supports both declarative exception handling (configured in struts-config.xml using global-exceptions or exception mappings) and programmatic handling (try-catch blocks in Action classes). Declarative handling centralizes configuration while programmatic gives fine-grained control.