What is the difference between JSF, Servlet and JSP?

前端 未结 15 2219
北海茫月
北海茫月 2020-11-21 06:41

I have some questions. These are :

  1. How are JSP and Servlet related to each other?
  2. Is JSP some kind of Servlet?
  3. How are JSP and JSF related t
15条回答
  •  不要未来只要你来
    2020-11-21 07:05

    Servlets are the server side java programs which execute inside the web container. The main goal of the servlet is to process the requests received from the client.

    Java Server Pages is used to create dynamic web pages. Jsp's were introduced to write java plus html code in a single file which was not easy to do in servlets program. And a jsp file is converted to a java servlet when it is translated.

    Java Server Faces is a MVC web framework which simplifies the development of UI.

提交回复
热议问题