以编程方式将创建的项目名称添加到站点页面URL

时间:2015-04-28 07:47:32

标签: java jsp url-rewriting liferay liferay-theme

我的网站页面结构如下:

/Collections (main page that appears on main navigation menu)
   /Add Collection (child page that appears as a drop down (hover) on main    navigation menu)
      /General Information (child page of Add Collection that appears as tabbed sub navigation menu below main navigation menu. After adding the collection, I redirect to this page.)

所以我的想法是添加一个集合,重定向到General Information页面,在那里我显示有关该添加集合的信息。

第一级和第二级页面有theme1,而第三级页面"一般信息"有theme2。在网站管理中,此第三级网页包含友好网址http://localhost:8080/web/guest/collections/general-information

这就是我试图以编程方式修改的内容。

在创建集合后的portlet类中,我将id参数附加到此友好URL response.sendRedirect(themeDisplay.getURLPortal()+"/collections/"+"general-information?id="+id);

theme2jsp中,我得到id以显示相应集合的General Information

我想要做的是以编程方式修改友好网址并在此网址中容纳collection name。类似的东西:

http://localhost:8080/web/guest/collections/{collectionname}/general-information

我该怎么做?

0 个答案:

没有答案
相关问题