More than 3000 questions in repository. There are more than 900 unanswered questions. Click here and help us by providing the answer. Have a video suggestion. Click Correct / Improve and please let us know.
Ans. MVC is a Design Pattern that facilititates loose coupling by segregating responsibilities in a Web application
1. Controller receives the requests and handles overall control of the request
2. Model holds majority of the Business logic, and
3. View comprise of the view objects and GUI component
Help us improve. Please let us know the company, where you were asked this question :
Ans. 1) It is an Action based MVC based framework which has adopt mvc2.
2) Struts2 is a pull-MVC (or MVC2) framework where action takes the role of the model rather than the controller. The “pull†concepts means views ability to pull data from an action, rather than having a separate model object available.
3) The Model View-Controller pattern in Struts2 is implemented with five core components – actions, interceptors, value stack / OGNL, result types and results / view technologies.
4) XML configuration as well as Annotation option available.
5) POJO based action available so we can write test cases easily.
6) Integration with Spring, tiles and OGNL based expression langugae.
7) Theme based tag libraries integrated with struts tag as well as support of Ajax tag.
8) Can have various view options like jsp, velocity, freemarker etc.
9) We can embed plugin through which we can modify and extend framework features.
Help us improve. Please let us know the company, where you were asked this question :
Ans. I like Spring as it comes with inbuilt Dependency Injection framework. It has great online community and support and is proven to work well with ORMs like Hibernate. If we are not working with ORM and DI, Struts 2 is also good.
Help us improve. Please let us know the company, where you were asked this question :
LikeDiscussCorrect / Improve  spring   struts   project lead   technical lead   techical architect
Q8. Action Class is singleton and hence not thread safe in ..
a. All versions of Struts b. Struts 1 c. Struts 2 d. None of Struts versions
Ans. Struts 1
Help us improve. Please let us know the company, where you were asked this question :
Ans. Struts controller uses the Command design pattern and the action classes use the Adapter design pattern. The process() method of the RequestProcessor uses the Template method design pattern.
Help us improve. Please let us know the company, where you were asked this question :