Model 1 Architecture

Embed Size (px)

Citation preview

  • 8/16/2019 Model 1 Architecture

    1/1

    Model 1 architecture is interaction between browser, JSP and themodel. Its an outdated technology.

    What is Model 2 MVC

    MVC is a so!tware architecture " the structure o! the system " thatse#arates domain$a##lication$business %whate&er you #re!er' logic!rom the rest o! the user inter!ace. It does this by se#arating thea##lication into three #arts( the model, the &iew, and the controller.

     )he model manages !undamental beha&iors and data o! thea##lication. It can res#ond to re*uests !or in!ormation, res#ond toinstructions to change the state o! its in!ormation, and e&en to noti!yobser&ers in e&ent"dri&en systems when in!ormation changes. )hiscould be a database, or any number o! data structures or storagesystems. In short, it is the data and data"management o! the

    a##lication.

     JSP ()he &iew e+ecti&ely #ro&ides the user inter!ace element o! thea##lication. Itll render data !rom the model into a !orm that is suitable!or the user inter!ace.

     )he controller recei&es user in#ut and ma-es calls to model obectsand the &iew to #er!orm a##ro#riate actions./ll in all, these threecom#onents wor- together to create the three basic com#onents o!MVC.

    Modi0ed Model 2 MVC !ront controller

    rom browser all re*uests go to single !ront controller and then in&o-e#articular controller. )he controller tal-s to business #art which &iew to render

    3am#le is dis#atcher ser&let