Ummm, no. The Model can insulate (nay, even represent!) error
conditions as well as (or even better than) the controller. :)

Allowing the View to "write" to the Model is a (very) bad idea,
but letting the View "read" from the Model is a good idea.

regards,
-Ade


-----Original Message-----
From: Dan Cancro [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 12:38 PM
To: 'Struts Users Mailing List'
Subject: RE: Struts + MVC Philosophical question


My favorite reason for insulating the view from the model is because
otherwise, you could encounter errors in the middle of serving a page and
the users would see a half-finished page.  With insulation (via controller),
you can make sure that all data retrieval by a page is foolproof.  When you
don't have web pages that start going to the browser before they are totally
done being generated, you don't have to worry about this problem.


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to