<div>Hi Kai Schliemann ,</div>
<div>i think that the sites is correctly chosen and the proof of that is that when i add at the navigation.jsp </div>
<div>"out.println("hello") "</div>
<div>hello will be written when i display my page</div>
<div>so i think that my page access to the content of the templates which contains the menu code but the problem is that no element from the folder is written!!</div>
<div>if u have another idea about what should be the problem thank u for telling me it and if u need more explanation about the situation ask me whatever u want </div>
<div>some other examples are also welcomed :) <br><br> </div>
<div><span class="gmail_quote">2007/2/19, Kai Schliemann <<a href="mailto:schliemann@comundus.com">schliemann@comundus.com</a>>:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div>
<div><span><font face="Arial" color="#0000ff" size="2">Hi,</font></span></div>
<div><span><font face="Arial" color="#0000ff" size="2">check, if you chose the correct site in the site select box (e.g. "sites/default").</font></span></div>
<div><span><font face="Arial" color="#0000ff" size="2">Regards</font></span></div>
<div><span><font face="Arial" color="#0000ff" size="2">Kai</font></span></div>
<blockquote dir="ltr" style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<div dir="ltr" align="left"><font face="Tahoma" size="2">-----Ursprüngliche Nachricht-----<br><b>Von:</b> <a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:opencms-dev-bounces@opencms.org" target="_blank">
opencms-dev-bounces@opencms.org</a> [mailto:<a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:opencms-dev-bounces@opencms.org" target="_blank">opencms-dev-bounces@opencms.org</a>]<b>Im Auftrag von </b>
mohamed hadj taieb<br><b>Gesendet:</b> Montag, 19. Februar 2007 11:31<br><b>An:</b> The OpenCms mailing list<br><b>Betreff:</b> [opencms-dev] How to Create a navigation menu<br><br></font></div>
<div><span class="e" id="q_110d9ac273426265_1">
<div>Hi i want to create a navigation menu with OpenCMS by using this code </div>
<div> </div>
<div>########################### menu code ##########</div>
<div><font size="1">
<p><%@ page session="false" </p>
<p>import="java.util.Iterator, </p>
<p>java.util.List, </p>
<p>org.opencms.jsp.CmsJspNavBuilder, </p>
<p>org.opencms.jsp.CmsJspNavElement, </p>
<p>org.opencms.jsp.CmsJspActionElement" </p>
<p>%> </p>
<p><% </p>
<p>/* </p>
<p>* Provides basic site navigation. </p>
<p>*/ </p>
<p>// Create the class from which we will get navigation. </p>
<p>CmsJspActionElement cms = </p>
<p>new CmsJspActionElement( pageContext, request, response ); </p>
<p>// Get navigation info </p>
<p>CmsJspNavBuilder navigation = cms.getNavigation(); </p>
<p>List navItems = navigation.getNavigationForFolder(); </p>
<p>Iterator i = navItems.iterator(); </p>
<p>// Loop through all of the items in the ArrayList and print the </p>
<p>// menu. </p>
<p>while( i.hasNext() ) { </p>
<p>CmsJspNavElement navElement = ( CmsJspNavElement )i.next(); </p>
<p>String link = cms.link( navElement.getResourceName() ); </p>
<p>String title = navElement.getTitle(); </p>
<p>out.println("&raquo;<a href=\"" + link + "\">" + title + "</a><br/>"); </p>
<p>} </p>
<p>%> </p></font></div>
<div>########################### end menu code ######</div>
<div> </div>
<div>when testing i dont get nothing in the content of the menu </div>
<div>i cheked the value of the bolean : i.hasnext() i found it false and i don t understand why </div>
<div> </div>
<div>if someone have an idea about the problem or have an other example to create a menu i will be grateful for his help</div>
<div> </div>
<div>Cordially</div>
<div>Mohamed HADJ TAIEB</div>
<div> </div>
<div> </div>
<div> </div></span></div></blockquote></div><br><br>_______________________________________________<br>This mail is sent to you from the opencms-dev mailing list<br>To change your list options, or to unsubscribe from the list, please visit
<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.opencms.org/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br></blockquote></div><br>