[opencms-dev] getNavigationTreeForFolder()

Alex Kornmayer kornmayer at cdf.cifom.ch
Thu Sep 2 16:27:37 CEST 2004


Hello,
I'm a probleme with a navigation, I will write something like this And it
don't work !!!!!!!!!

MODULE ES dans INFORMATIQUE
Groupe de module :    Travail coopératif
Nom du module :        Web 2

LevelFolder 2 = "MODULES ES"                    // 0
LevelFolder 3 = "INFORMATIQUE"                 // 1
LevelFolder 4 = "Travail coopératif"                 // 2
LevelFolder 5 = "Web 2"                               // 3

And my file.jsp is so :

<%
// Create a CmsJspActionElement
CmsJspActionElement cms = new CmsJspActionElement(pageContext, request,
response);
int startLevelFolder = 2;
int endLevelFolder= 5;
java.util.ArrayList list =
cms.getNavigation().getNavigationTreeForFolder(startLevelFolder,
endLevelFolder);
java.util.Iterator iterator = list.iterator();
%>
Than some html
<%
    CmsJspNavElement navElement = ( CmsJspNavElement )iterator.next();
// 0
    out.println(navElement.getResourceName() +" - ");
    CmsJspNavElement navElement = ( CmsJspNavElement )iterator.next();
// 1
    out.println(navElement.getResourceName());
%>
Than some html
<%
    CmsJspNavElement navElement = ( CmsJspNavElement )iterator.next();
// 2
    out.println(navElement.getResourceName();
%>
Than some html
<%
    CmsJspNavElement navElement = ( CmsJspNavElement )iterator.next();
// 3
    out.println(navElement.getResourceName());
%>




Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20040902/e8a7ecec/attachment.htm>


More information about the opencms-dev mailing list