我的网站页面结构如下:
/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);
在theme2
和jsp
中,我得到id
以显示相应集合的General Information
。
我想要做的是以编程方式修改友好网址并在此网址中容纳collection name
。类似的东西:
http://localhost:8080/web/guest/collections/{collectionname}/general-information
我该怎么做?