Free Jobs
Reference




click here


click here
Struts Interview Questions(Basic)

For more advanced and tough Struts Interview Questions Click Here



Q1. What is struts?
Struts is a open source framework which helps buliding web applications based on the java Servlet and JavaServer pages.Struts is based on Model-View-Controller (MVC) design pattern.

Q2. How Struts is related to J2EE?
Struts framework is built on J2EE technologies (JSP, Servlet, Taglibs), but it is not part of the J2EE standard.

Q3. What is Model–View–Controller (MVC)?
Model–View–Controller (MVC) is an architectural pattern used in software engineering. The pattern isolates application logic component from input and presentation component, permitting independent development, testing and maintenance of each component. The model is the domain-specific presentation of the data upon which the application operates. The view renders the model into a form suitable for interaction. The controller receives input and initiates a response by making calls on model objects An MVC application may be a collection of model/view/controller collections, each responsible for a different UI element. Example: MVC in a web applications: View is the HTML generated by the application. controller receives GET or POST input and decides what to do with it, Model objects contain the business rules(BAL Layer) and know how to carry out specific tasks such as registering a new user.

Q4. What is the design role played by Struts in MVC?
Structs plays the role of controller in Model/View/Controller(MVC) design.The JSP plays view and Model is played by JDBC in general. The Struts controller is a set of programmable components that allow developers to define exactly how the application interacts with the user.


Q5. What are the basic classes of Struts?
The basic classes for struts are as below:
a)Action
b)ActionForm
c)ActionServlet
d)ActionMapping
e)ActionForward

Q6. What configuration files are used in Struts?
ApplicationResources.properties
struts-config.xml
These two files are used to bridge the gap between the Controller and the Model.

Q7. How does Struts keep control-flow decisions out of presentation layer?
Struts implements the MVC pattern through the use of ActionForwards and ActionMappings to keep control-flow decisions out of presentation layer.

Q8. What is Action Class?
The Action Class is part of the Model part of MVC pattern and is a wrapper around the business logic. The purpose of Action Class is to translate the HttpServletRequest to the business logic.


Q9.What is ActionForm?
ActionForm,a JavaBean,extends org.apache.struts.action.ActionForm. Web application session state is maintained by ActionForm.

Q10.From Where we can download Struts?
We can download Struts is at struts.apache.org. The builds are very stable, and recommended as the best.

For more advanced and tough Struts Interview Questions Click Here









www.freejobsreference.com Copyright © 2009-2011 | All Rights Reserved
All content of this website is protected by copyright laws and should not be reproduced in any form or by any means without written permission
(Best viewed in IE 8.0+ or Firefox 3.0+ at resolution of 1024 * 768 or higher)