jsp和html标签升级成jsf,JSF与JSP的区别

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 Javabased technology specifically used to help software developers serve dynamically generated web pages (such as HTMLand XML) as well as other document types suitable to the development of interactive web content. It was specifically created in orderto 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 componentsystem, 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:facesservletJSP  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:

b0205af62a289034a6f0850770c7870c.png

MVC for JSF:

1ed591d6e53327b008e35bf31d2cebdb.png

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值