Starting Java EE MVC

后端 未结 3 551
长发绾君心
长发绾君心 2021-02-01 10:22

I\'m trying to learn Java EE, starting with Servlets and JSPs in an MVC architecture. I know Servlets are often used as the controller and JSPs are often used as the view, and t

3条回答
  •  一向
    一向 (楼主)
    2021-02-01 10:59

    1. To do java web programming, servlet is not a must. You can simply use jsp, like the way people program php & asp. It's fairly straight forward, and get u started easily. This is called Model 1 method.
    2. For Model 2 programming model, if you really want to do MVC programming, you can study "Page Controller" and "Front Controller" design patters to understand how they work behind the scene.

      If you want to use ready-made framework, you can try out Spring MVC.

    http://www.vaannila.com/spring/spring-mvc-tutorial-1.html

    good luck.

提交回复
热议问题