Multiple choice technology architecture

How are exceptions handled in struts?

  1. Declarative

  2. Structured

  3. Programmatic

  4. Both 1 and 3

Reveal answer Fill a bubble to check yourself
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.