What is the main difference between Mvc1 and Mvc2 Architecture??
Answer Posted / baba
There is nothing like MVC1 or MVC2. Sun specification talks
about Model - 1 and Model - 2 architecture. MVC or Model -
View - Controller architecture is equivalent to the Model -
2 architecture. In MVC the central idea is separation of
business logic and presentation logic, which was a
shortcoming of the Model - 1. You cannot have complex
business logic in your JSP, thats bad practice. In Struts
the ActionServlet is based on the FrontController Design
pattern. Ideally in MVC there are JSP pages to handle the
presentation logic, the model to encapsulate business data
and manipulation logic and a controller to co-ordinate
between the view and model.
| Is This Answer Correct ? | 32 Yes | 6 No |
Post New Answer View All Answers
What is struts? Explain
What is container struts2?
Why are frameworks used?
What applications use apache struts?
What is the purpose of @customvalidator annotation?
Explain about the validation steps which have to be carried during validation of client-side address?
How can you create your custom interceptor in struts 2?
Which configuration files are used in struts?
When should we use SwtichAction?
Does apache tomcat use struts?
Explain about tiles?
What is the use of forwardaction?
How we can install struts?
Lists the bundled validators in struts?
What are action classes in struts?