新聞中心
JavaServer Faces (JSF) is a web application framework that is based in Java. Its main objective is to simplify development integration of user interfaces that are web based. It is a request driven Model View Controller based on component driven UI design model, which uses XML –view templates or Facelet views. Requests ran through the JSF are processed by the FacesServlet. This component loads the view template that is required, builds a component tree, processes events, and renders the response –which is usually in HTML.
JavaServer Pages (JSP) is a Java based technology specifically used to help software developers serve dynamically generated web pages (such as HTML and XML) as well as other document types suitable to the development of interactive web content. It was specifically created in order to provide developers the ability to program Java web applications.
JSF | JSP |
JSF is a web application that is used to simplify development integration of web based user interfaces. | JSP is a Java based technology used specifically in order to help software developers create dynamic web pages. |
JSF contains multiple core features, including, but not limited to, Managed Beans, a template based component system, and two XML based tag libraries. | JSP must be compiled in Java bytecode in order to function properly.JSP must be compiled in Java bytecode in order to function properly. |
JSF is a framework. Model:backing bean View:JSF Controller:facesservlet | JSP is not a request driven model view controller, but JSP is accessed by the dynamically generated web pages like HTML or XML. |
JSF supports validator and conversion,ajax. | JSP does not. |
The Different Architecture of MVC between JSF and JSP
MVC for JSP:
MVC for JSF:
另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)scvps.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國服務(wù)器、虛擬主機、免備案服務(wù)器”等云主機租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡單易用、服務(wù)可用性高、性價比高”等特點與優(yōu)勢,專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場景需求。
分享文章:JSF與JSP的區(qū)別-創(chuàng)新互聯(lián)
當(dāng)前鏈接:http://www.ef60e0e.cn/article/dpchjs.html