我喜欢将parm解析为页面上的portlet,但我的WebSphere Portal 7服务器上有很多vHost。
http://bsp0.servername.dk/myportal/Home/niceuri/!ut/p/ ...
http://bsp1.servername.dk/myportal/Home/niceuri/!ut/p/ ...
http://bsp2.servername.dk/myportal/Home/niceuri/!ut/p/ ...
我找不到我的页面......
final SelectionAccessorFactory selectionAccessorFactory = (SelectionAccessorFactory) portalstateManagerService
.getAccessorFactory(SelectionAccessorFactory.class);
SelectionAccessorController selectionAccessorCOntroller = selectionAccessorFactory
.getSelectionController(url.getState());
selectionAccessorCOntroller.setSelection(page_uniquename);
if (selectionAccessorCOntroller != null) {
selectionAccessorCOntroller.dispose();
}
我收到此错误:
com.ibm.portal.state.accessors.exceptions.UnknownUniqueNameException: EJPEI0158E
已经访问过
Portal 6.1 and 7.0 Advanced URL Generation Helper classes
Creating a link from a servlet to a page in a virtual Portal
How to create a link to a portlet (Standard API) that passes parameters to that portlet
我发现了这条评论 @param pageName这是uniquename,需要注意的一件事是它的范围是
上的虚拟门户网站Portlet URL generation common methods. URL generation services
我如何确定应该查看哪个vHost?
2013年5月21日更新
我尝试在我的ServerContext类中使用bsp0.servername.dk17525作为URL-Context
这是硬编码版本
public String getHomeProtected() {
return "/myportal/bsp0.servername.dk17525";
}
public String getHomePublic() {
return "/myportal/bsp0.servername.dk17525";
}
我从WebSphere Portal Administation获得了bsp0.servername.dk17525 - >> Virtuel Portel ......