• +91 9723535972
  • info@interviewmaterial.com

Struts Interview Questions and Answers

Struts Interview Questions and Answers

Question - 111 : - Is Struts Framework part of J2EE?

Answer - 111 : - Although Struts framework is based on J2EE technologies like JSP, Java Beans, Servlets etc but it’s not a part of J2EE standards.

Question - 112 : - When should be opt for Struts Framework?

Answer - 112 : -

Struts should be used when any or some of the following conditions are true:

  • A highly robust enterprise level application development is required.
  • A reusable, highly configurable application is required.
  • A loosely coupled, MVC based application is required with clear segregation of different layers.

Question - 113 : - Why ActionServlet is singleton in Struts?

Answer - 113 : - In Struts framework, actionServlet acts as a controller and all the requests made by users are controlled by this controller. ActionServlet is based on singleton design patter as only one object needs to be created for this controller class. Multiple threads are created later for each user request.

Question - 114 : - Which technologies can be used at View Layer in Struts?

Answer - 114 : -

In Struts, we can use any of the following technologies in view layer:

  • JSP
  • HTML
  • XML/XSLT
  • WML Files
  • Velocity Templates
  • Servlets

Question - 115 : - What are the conditions for actionForm to work correctly?

Answer - 115 : -

ActionForm must fulfill following conditions to work correctly:

  • It must have a no argument constructor.
  • It should have public getter and setter methods for all its properties.

Question - 116 : - Which library is provided by Struts for form elements like check boxes, text boxes etc?

Answer - 116 : - Struts provide HTML Tags library which can be used for adding form elements like text fields, text boxes, radio buttons etc.


NCERT Solutions

 

Share your email for latest updates

Name:
Email:

Our partners