CrazyEngineers
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • sookie

    MemberApr 11, 2010

    Let me try to explain the stuff with the basic architecture (let's forget about MVC for the time being).
    A typical web architecture looks like below

    [​IMG]
    Even in above picture, sometimes Model is also missing. Everything is quite clear in above picture. User request is directly processed.

    Now let's see how a Web MVC looks like
    [​IMG]
    In above diagram the client request is intercepted by a servlet( A controller). It handles the inital processing request and determines which JSP(View) page to display .

    Now Please tell your exact confusion . 😀
    Are you sure? This action cannot be undone.
    Cancel
  • savitha_chandu

    MemberApr 15, 2010

    I'll give you an overview of the components of the Model View Controller design pattern.
    - Model : these are the javabeans with their properties and methods (the getters, setters and constructors). The javabeans correspond to the concepts the users of your web application will use. For example, if your web application sells products, you will certainly have the following java beans : product, customer, order, invoice.
    You could say that this is the heart of the business layer.
    - View : these are the java server pages (JSP's). The JSP's only take care of the presentation of the data.
    Therefor you can call this the presentation layer.
    - Controller : this is the very heart of the application. Since a web application works with request - response, there must be a program able to catch every request and to formulate a response on it. This is the controller or servlet.

    try out this link may be it can help you.
    #-Link-Snipped-#
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register