What is the difference between JSF, Servlet and JSP?

前端 未结 15 1903
北海茫月
北海茫月 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

    See http://www.oracle.com/technetwork/java/faq-137059.html

    JSP technology is part of the Java technology family. JSP pages are compiled into servlets and may call JavaBeans components (beans) or Enterprise JavaBeans components (enterprise beans) to perform processing on the server. As such, JSP technology is a key component in a highly scalable architecture for web-based applications.

    See https://jcp.org/en/introduction/faq

    A: JavaServer Faces technology is a framework for building user interfaces for web applications. JavaServer Faces technology includes:

    A set of APIs for: representing UI components and managing their state, handling events and input validation, defining page navigation, and supporting internationalization and accessibility.

    A JavaServer Pages (JSP) custom tag library for expressing a JavaServer Faces interface within a JSP page.

    JSP is a specialized kind of servlet.

    JSF is a set of tags you can use with JSP.

提交回复
热议问题