portlet和servlet之间有什么区别?

编程入门 行业动态 更新时间:2024-10-27 13:24:37
本文介绍了portlet和servlet之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我被要求处理portlet和门户。

I am asked to work on portlets and portals.

我想知道portlet和servlet之间的区别吗?

I want to know the difference between a portlet and a servlet?

portlet与servlet有何不同(可能在功能上)?

How / where does a portlet differ (may be functionally) from a servlet?

推荐答案

Portlet是其中的一部分JSR-168标准,用于管理门户容器和组件。这是与Web容器(和servlet)标准不同的标准。虽然这两个标准之间肯定有很强的相似之处,但它们在容器,API,生命周期,配置,部署等方面存在差异。

Portlets are part of JSR-168 standard that regulates portal containers and components. This is different standard from standards for web containers (and servlets). Though there are definitely strong parallels between these two standards they differ in containers, APIs, life cycle, configuration, deployment, etc.

portlet与servlet之间的主要区别可能是因为servlet总是响应单一类型的操作 - 请求,portlet(由于其生命周期的性质和更强的容器绑定)必须响应两种类型的操作: render 和请求。当然还有更多内容,但我在研究门户开发时发现这是两者之间的核心差异。

The main difference between portlet vs. servlet could be that while servlet always responds to single type of action - request, portlet (due to nature of its life cycle and stronger container bindings) has to respond to two types of actions: render and request. There are of course more to it but I found this as the core difference between the two when I studied portal development.

更多推荐

portlet和servlet之间有什么区别?

本文发布于:2023-10-07 17:17:13,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1470002.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:有什么区别   portlet   servlet

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!