Portlet Study Notes (1)

本文介绍了portlet作为服务器端应用程序的概念及其在WebSphere Portal Server中的运行方式。portlet继承自javax.servlet.http.HttpServlet类,并由应用服务器作为servlet进行处理。与servlet相比,portlet的管理更加动态灵活,易于安装、删除及修改。文章详细描述了portlet从部署到实例化的全过程,包括门户管理员部署portlet应用、用户或管理员将portlet放置到页面上以及不同场景下portlet数据的存储范围。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

    A portlet is a server side application that runs in the context of the WebSphere Portal Server. It inherits from the javax.servlet.http.HttpServlet class and as such is treated as a servlet by the application server. However , the portlets are administered more dynamically than servlets. It is easy to install , remove , change , create and delete.

The processes of the portlets concept :

Step 1:
    The portal administrator uses the administrative interface to deploy a new portlet application WAR file or install a copy of a portlet.
Step 2:
    The portlet is placed on a page by a user or an administrator. This creates a concrete portlet instance, which is a concrete portlet parameterized by a single PortletData object.
Step 3:
    The scope of the PortletData depends on the scope of the page that the concrete portlet is on.
    1. If an administrator puts a concrete portlet on a group page, then the PortletData object contains data stored for the group of users. This holds true for a group of users who have view access to the page. However, if users have edit access to the portlet on a group page, then a new concrete portlet instance is created for each user that edits the portlet. In this case, PortletData contains data for each user that edits the portlet.

    2. If a concrete portlet is put on a user's page, the PortletData contains data for that user.When a user accesses a page that contains a portlet, that creates a user portlet instance. When a user logs into the portal, the portal server creates a PortletSession for each of the user's portlets. A concrete portlet instance parameterized by a PortletSession is known as a user portlet instance. There can be many user portlet instances per concrete portlet instance. A user portlet instance is a concrete portlet instance parameterized by a single PortletSession. There can be many user portlet instances per concrete portlet instance. The PortletSession stores transient information related to a single use of the portlet.
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值