I have a question on how the objects in an MVC pattern are created. Does another controller open all three - model, controller and views. Or, does another controller open your controller, then your controller open the model and views. I'm thinking in terms of a large application that has many mvcs.
I believe We can have multiple controller instances in an application. For example, in business deligate pattern, we can define the same controller class by making the entry in web.xml(thereby a new instances for every business deligate will be created by the server).
To answer Barry's question, There is no specific rule that controller should create model and model should create a view etc. It is based on the framework.
If you take web applications, the controller "create" model instances and "invoke" view instances. In this case I have said "invoke" because the control is forwarded to the web container for creating the view instance. What the controller can do is just say response.forward() or response.redirect().
And generally we do not instantiate one controller from another controller.
Hope this helps.
It's a tiny ad only because the water is so cold.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop