[Opensource] HTTPController is not the Model in the MVC paradigm; rather it is the
controller
Peter Pilgrim
peter.pilgrim at db.com
Fri Mar 2 07:15:31 PST 2001
In the Edxpresso Framework doc it is written the Controller is the business model
of the web app. This is not true, it is the controller! At least I am using HTTP Controller
subclasses to delegate request to a proper model object and then
to redirect to some URL (JSP, HTML, whatever ).
I looked at Peter Carapetyan examples webappwriter where the formcache is being
used. His examples allow you type in the form but there is not method to "Reset"
the form. I think this is not as easy to do in the present version of the form cache.
Simply doing "clearFormCache" did not work as expected. Something
is wrong here I thought. There should be a way of clearing this HTML form
or resetting it. Then I thought the controller is missing something or implemented
in the wrong way. Simply relying on the formcache thing does not hit it.
In other words a proper Model object would be required.
The ``Input'' would be generated from the model or DB objects contained
in the model. Tthe model handles the registration of the new user
person not the controller, changes the password, etc.
The model can also perform the reset operation on the data that is
presented to the form. That is HTTP Controller delegate the reset request
to the model which delegates the request to the DB objects which clear
out the data. On return the ``Inputs'' are repopulated with the model's
DB Object or DB Objects.
I hope this makes sense. Does it? I think the HTTP Controller should be thinner?
Delegate the business outside of it. What do you think?
--
Peter Pilgrim
G.O.A.T
"the Greatest Of All Time"
--
This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of the material in this e-mail is strictly forbidden.
More information about the Opensource
mailing list