The Artima Developer Community
Sponsored Link •

Design Forum
Question about MVC

2 replies on 1 page. Most recent reply: Dec 18, 2002 8:43 AM by Pedro trujillano

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Richard Zhang

Posts: 1
Nickname: hahaha
Registered: Nov, 2002

Question about MVC Posted: Nov 6, 2002 10:37 AM
Reply to this message Reply
Advertisement
In the standard MVC model, both the Controller and the View have knowledge about the DataModel. But, in my opinion, only the Controller should know the DataModel. The Controller could manage the View if the DataModel is changed. The standard MVC creates an extra dependency between the View and the DataModel. Could someone tell me what are the advantages of this "extra dependency"?

Thanks.


avuthu

Posts: 1
Nickname: avuthu
Registered: Nov, 2002

Re: Question about MVC Posted: Nov 15, 2002 6:03 AM
Reply to this message Reply
Your are right about the approach.The other way is old and fast way to get things done for a small project.it is not that flexible.

Let me know if you have good understanding of MCV Event Handlers.

I have few questions if you can?

(Combining Servlets,JSP and JavaBeans), how do you think that by including the Dispatching in the Event Handlers becomes a pure MVC Architecture?

Dispatching should only be done through the controller or its subclasses ?

Now what is the relation between the Controller and the Event Handlers ?

Where does Event Handlers fall under MODEL, VIEW, CONTROLLER ?

Hope you are interested in this topic.

Shat Avuthu

Pedro trujillano

Posts: 2
Nickname: pedro30
Registered: Dec, 2002

Re: Question about MVC Posted: Dec 18, 2002 8:43 AM
Reply to this message Reply
Well,

we use MVC here, at the time we designed our first big java transactional system (homebanking) we didn't knew about struts, I guess it was not ready yet. No portal frameworks were in the market, just commerce suites.

Ok we did it our selfs... succesfully, what now? well the next one will use a portal frame work, correct me if I am wrong, we see them (bea's) like a tooled MVC is not a puer MVC, true, but we compared the effort in creating our homemade mvc, using struts, and the price of the product, and it make's sense.

What is the mistake we made... the event handler thing. The flow in terms of code... transactions is ease to handle classes ejbs we make 200 tps to a IMS without problems (for us... the IMS ppl are not so happy).

What happends, the request gets to the controller servlet which controls session data and ACLs says ok passes the flow to a factory which maps the functionality below, but when the answer comes back (we forward it to a jsp) what? what if we want to control the "browser functional flow"? what standard can we use, how do we know where the customer is? what data did he sent us in the last click where is he comming from?

well developers use session data, which we know is a mistake, our session objects are kind of fat... we have big machines, we can handle that.

But if we just had that in mind our MVC would be much better

regards

Flat View: This topic has 2 replies on 1 page
Topic: Swing Design Patterns Previous Topic   Next Topic Topic: java clases and subclasses

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use