Multiple choice technology web technology

Action Classes in Struts 2 have to extend ActionSupport.

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Action classes in Struts 2 do NOT have to extend ActionSupport. They only need to implement the Action interface (which has one method: execute()). ActionSupport is a convenient base class that provides default implementations and utility methods, but it's optional. You can even use plain POJOs as actions.