溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

JSF與JSP的區(qū)別

發(fā)布時間:2020-06-19 02:12:59 來源:網(wǎng)絡(luò) 閱讀:1134 作者:My_good_science 欄目:開發(fā)技術(shù)

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.


JSFJSP
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:

JSF與JSP的區(qū)別


MVC for JSF:

JSF與JSP的區(qū)別



向AI問一下細(xì)節(jié)

免責(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)容。

AI