【发布时间】:2014-11-17 14:32:18
【问题描述】:
我有一个页面说 xyz,其中包含许多子页面。一些子页面是“启用CUG”的。在我的 jsp 中,我调用了currentPage.listChildren(),但这仅在我以管理员身份登录时列出启用了 CUG 的页面。如果匿名用户点击此 jsp 的 url,则不会列出启用 CUG 的页面。下面是我的jsp代码:
Iterator<Page> itr = currentPage.listChildren();
while(itr.hasNext()) {
Page ctxPage = itr.next();
String url = hostName + ctxPage.getVanityUrl()+".html";
%>
<a href="<%=url%>"><%=url%><br/>
<%
}
}
我也尝试使用here描述的方法以管理员身份登录工作区,但没有成功。
感谢任何帮助,谢谢!
【问题讨论】: