方法一:采用Portal的Puma API
- Context ctx = new InitialContext();
-
PortletServiceHome pumaServiceHome = (PortletServiceHome) ctx.lookup("portletservice/com.ibm.portal.um.portletservice.PumaHome");
-
PumaHome puma_home = null;
-
if (pumaServiceHome != null){
-
-
puma_home = (PumaHome) pumaServiceHome.getPortletService(PumaHome.class);
- }
- PumaProfile pp = puma_home.getProfile();
- User user = pp.getCurrentUser();
- String uid = pp.getIdentifier(user);
Context ctx = new InitialContext();
PortletServiceHome pumaServiceHome = (PortletServiceHome) ctx.lookup("portletservice/com.ibm.portal.um.portletservice.PumaHome");
PumaHome puma_home = null;
if (pumaServiceHome != null){
puma_home = (PumaHome) pumaServiceHome.getPortletService(PumaHome.class);
}
PumaProfile pp = puma_home.getProfile();
User user = pp.getCurrentUser();
String uid = pp.getIdentifier(user);
方法二:采用传统的Request方式
- request.getUserPrincipal().getName(); 或 request.getRemoteUser();
request.getUserPrincipal().getName();
request.getRemoteUser();
方法三:采用Taglib方式
- <%@ taglib uri="http://www.ibm.com/xmlns/prod/websphere/portal/v6.0/portal-fmt" prefix="portal-fmt" %>
-
<portal-fmt:user attribute="cn"/>
分享到:
相关推荐
获取IBM WebSphere Portal当前用户组
The dictionary defines a portal as a grand or imposing door or entrance; hence, that picture on the cover. In this book, you will learn why the word portal has become a major buzzword in the world of ...
IBM演示WebSpherePortal教程
WebSphere Portal Server 白皮书
websphere portal开发手册
IBM WebSphere Portal 解决方案
3、如何在主题与皮肤中获取PORTAL登录用户信息 90 4、PORTAL6.1.0.3无法查找任何的用户或用户组 92 5、如何个性化PORTLET添加控制板 93 6、IBM WCM中匿名搜索 94 7、开发一个系统登录的PORTLET 95 8、WEBSPHERE ...
WebspherePortal中的DB2数据库迁移Oracle
ibm websphere portal 学习资料让你对portal 有个入门的了解.写边有一些学习portal 的站点.
台湾友人Elvin分享的WebSphere Portal7入门教程
WebSphere Portal最佳实践.pdf
IBM WebSphere Portal 介绍,IBM门户解决方案,业务状况分析\门户解决方案
WebSphere Portal 集群详细安装文档。 数据仓库项目,做集群环境配置文档,非常详细!
IBM WebSphere Portal 由用于构建和管理安全的企业对企业(B2B)、企业对客户(B2C)和企业对雇员(B2E)门户网站的中间件、应用程序(称为 portlet)和开发工具组成。WebSphere Portal 的基本产品提供个性化、web ...
详细描述IBM WebSphere Portal 6.1的集群配置,包括迁移数据库,配置LDAP安全性以及配置WebServer
IBM WebSphere Portal 6.0 安装手册,繁体中文
IBM演示-WebSpherePortal教程:
IBM WebSphere Portal安全性配置详细步骤(有图说明)
关于在Linux环境安装IBM WebSphere Portal详细描述
与WebSphere Portal V7附带有两个主题。本文适用于创建一个新的基于新PageBuilder2的主题。开始创建自己的自定义主题的最佳方式是通过复制门户PageBuilder2主题,这将确保你的主题为主题,以功能所需的所有元素。