您好,登錄后才能下訂單哦!
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:
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。