Multiple choice technology programming languages

The parameters passed into execute() method is?

  1. ActionMapping mapping, ActionForm form, ServletRequest request, ServletResponse response.

  2. Mapping mapping, ActionForm form, ServletRequest request, ServletResponse response.

  3. ActionMapping mapping, Form form, ServletRequest request, ServletResponse response.

  4. ActionMapping mapping, ActionForm form, ServletRequest request, Response response.

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

The execute() method in Struts Action class takes four parameters: ActionMapping (configuration information), ActionForm (form bean with request parameters), ServletRequest (HTTP request), and ServletResponse (HTTP response). Option B is wrong because 'Mapping' is not a type. Option C is wrong because 'Form' is not a type. Option D is wrong because 'Response' is not a type.