Web tier: servlets, JSP, Web frameworks: Does Struts Makes Users to Strictly Follow MVC
The question that I want to ask is that is struts as a web development framework makes the user strictly follow the MVC Model or is it upto the developer to use it where he thinks it is good.
- Posted by: Amit Sharma
- Posted on: October 07 2004 00:53 EDT
In MVC2 paradigm, there is a separate front controller (ActionServlet), View (JSP) and model. Struts framework is modelled to adhere to the MVC and hence Struts applications enforce MVC.
but you're free to do whatever you want. I've seen some very ugly stuff, with little or no adherence to mvc.
but you're free to do whatever you want. I've seen some very ugly stuff, with little or no adherence to mvc.Yeah, I think MVC will eventually move towards a pull model vs. push. Component models like JSF use a pull model approach that basically puts the controllers in your session/request and the view can pull the data it needs.