Tag: programming languages

Questions Related to programming languages

From a MVC perspective, Struts provides the

  1. Model

  2. View

  3. Controller

  4. None of Above


Correct Option: B

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) Model - Struts does provide support for handling the model component in the MVC architecture. However, it is not the primary focus of Struts.

Option B) View - This option is correct because Struts provides the view component in the MVC architecture. It offers various features and components like JSP (JavaServer Pages) and custom tag libraries to handle the presentation logic.

Option C) Controller - Struts does provide support for handling the controller component in the MVC architecture. It offers an action-based framework where the controller logic is managed through action classes.

Option D) None of Above - This option is incorrect because Struts does provide support for both the view and controller components in the MVC architecture.

The correct answer is B) View. This option is correct because Struts primarily focuses on providing the view component in the MVC architecture.

  1. Always converts HTML markup to entity equivalents, like <

  2. Never converts HTML markup to entity equivalents

  3. Converts markup when filter=true

  4. Converts markup when markup=false


Correct Option: C
  1. Create separate configuration files for each locale

  2. Specify an locale for a definition

  3. Either A or B

  4. None of Above


Correct Option: A

What is return type of execute () method?

  1. void

  2. String

  3. ActionForward

  4. ActionMapping


Correct Option: C
  1. Validate () method of ActionForm, if error return to error.jsp

  2. Validate () method of ActionForm, execute () of Action, if error return to jsp mentioned in input tag.

  3. Validate () method of ActionForm, if error return to jsp mentioned in input tag.

  4. None of the above


Correct Option: C
  1. ActionErrors

  2. ActionError

  3. void

  4. ActionMapping


Correct Option: C

Is ActionForm serializable ?

  1. true

  2. false

  3. both 1 and 2

  4. None of the above


Correct Option: A
  1. MappingDispatchAction

  2. MethodDispatchAction

  3. EventDispatchAction

  4. LookUpDispatchAction


Correct Option: B