portlet和servlet之间有什么区别? [英] what is the difference between a portlet and a servlet?

查看:114
本文介绍了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之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆