<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.2722.900" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=367072409-30102003><FONT face=Arial color=#0000ff 
size=2>Martijn,</FONT></SPAN></DIV>
<DIV><SPAN class=367072409-30102003><FONT face=Arial color=#0000ff size=2>try 
with this:</FONT></SPAN></DIV>
<DIV><SPAN class=367072409-30102003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=367072409-30102003><FONT face=Arial color=#0000ff size=2><%@ 
taglib prefix="cms" uri="<A 
href="http://www.opencms.org/taglib/cms">http://www.opencms.org/taglib/cms</A>" 
%><BR><%@ taglib prefix="c" uri="<A 
href="http://java.sun.com/jstl/core">http://java.sun.com/jstl/core</A>" 
%></FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=367072409-30102003><FONT face=Arial color=#0000ff size=2><%@ 
page import="com.opencms.flex.jsp.*,com.opencms.file.*,java.util.*" 
%></FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=367072409-30102003><FONT face=Arial color=#0000ff 
size=2><%!<BR>public void 
buildSiteMap(com.opencms.flex.jsp.CmsJspActionElement cms, 
<BR>   String uri, java.io.Writer out) throws Exception 
{</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=367072409-30102003><FONT face=Arial color=#0000ff 
size=2> String desc;<BR> ArrayList navList = 
cms.getNavigation().getNavigationForFolder(uri);</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=367072409-30102003><FONT face=Arial color=#0000ff 
size=2> if (navList.size() > 0) <BR> {<BR>  Iterator 
navItem = navList.iterator();<BR>  CmsJspNavElement 
nav;<BR>  String target;<BR>  while (navItem.hasNext()) 
<BR>  {<BR>   nav = (CmsJspNavElement) 
navItem.next();<BR>      <BR>   if 
(nav != null) <BR>   {<BR>    target = 
nav.getResourceName();<BR>                                
target = cms.link(target);<BR>    if (nav.isFolderLink()) 
<BR>    {<BR>                                        
if (nav.getNavTreeLevel() == 
2)<BR>                                         
{<BR>                                            
out.write("<tr><td align=left 
valign=top>&nbsp;&nbsp;&nbsp;<font class = \"bandtit2\">" + 
nav.getNavText() + 
"</font></td></tr>\n");<BR>                                            
out.write("<tr><td height=\"1\" valign=\"top\" 
bgcolor=\"#CCCCCC\"><img src=\"" + cms.link("../resources/spacer.gif") + 
"\" width=\"1\" 
height=\"1\"></td></tr>\n");<BR>                                         
}<BR>                                        
else<BR>                                         
{<BR>                                            
out.write("<tr><td align=left 
valign=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<strong>&#8250;</strong>&nbsp;<a 
href=\"" + target + "\" class=\"bandsottitle\" >" + nav.getNavText() + 
"</a></td></tr>\n");<BR>                                         
}<BR>     <BR>    } 
<BR>    else 
<BR>    {<BR>     out.write("<tr><td 
align=left 
valign=top>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-&nbsp;<a 
href=\"" + target + "\" class=\"navig\" >" + nav.getNavText() + 
"</a></td></tr>\n");<BR>    }</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=367072409-30102003><FONT face=Arial color=#0000ff 
size=2>    desc = 
nav.getDescription();<BR>    if (desc != null) out.write(" 
&nbsp;" + desc);</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=367072409-30102003><FONT face=Arial color=#0000ff 
size=2>    if (nav.isFolderLink()) 
<BR>    {<BR>     buildSiteMap(cms, 
nav.getResourceName(), out);<BR>    }</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=367072409-30102003><FONT face=Arial color=#0000ff 
size=2>   }</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=367072409-30102003><FONT face=Arial color=#0000ff 
size=2>  }<BR> }<BR>}<BR>%></FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=367072409-30102003><FONT face=Arial color=#0000ff 
size=2><%<BR> // create a JSP action 
element<BR> com.opencms.flex.jsp.CmsJspActionElement cms = new 
com.opencms.flex.jsp.CmsJspActionElement(pageContext, request, 
response);</FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=367072409-30102003><FONT face=Arial color=#0000ff 
size=2>%></FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=367072409-30102003><FONT face=Arial color=#0000ff size=2><% 
buildSiteMap(cms, uri, out); %></FONT></SPAN></DIV>
<DIV> </DIV>
<DIV><SPAN class=367072409-30102003><FONT face=Arial color=#0000ff 
size=2></cms:template><BR></FONT></SPAN></DIV>
<DIV><SPAN class=367072409-30102003><FONT face=Arial color=#0000ff size=2>I wish 
it could help you!</FONT></SPAN></DIV>
<DIV><SPAN class=367072409-30102003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=367072409-30102003><FONT face=Arial color=#0000ff size=2>Kind 
regards,</FONT></SPAN></DIV>
<DIV><SPAN class=367072409-30102003><FONT face=Arial color=#0000ff 
size=2>Tiziano</DIV></FONT></SPAN>
<DIV> </DIV>
<P><I><FONT face=Verdana color=#0000ff 
size=2>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=</FONT></I> <BR><I><FONT 
face=Verdana color=#0000ff size=2>Tiziano Romano<BR>NETikos S.p.A.<BR>Via 
Matteucci, 34 B<BR>56124 PISA - ITALY<BR>Tel.: + 39 050 968 553<BR>Fax: + 39 050 
968 525<BR><U><<A 
href="mailto:tiziano.romano@netikos.com">mailto:tiziano.romano@netikos.com</A>></U><BR>www.netikos.com 
</FONT></I><BR><I><FONT face=Verdana color=#0000ff 
size=2>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=</FONT></I> </P>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> 
  opencms-dev-admin@opencms.org [mailto:opencms-dev-admin@opencms.org]<B>On 
  Behalf Of </B>Martijn Schiferli<BR><B>Sent:</B> Thursday, October 30, 2003 
  10:15<BR><B>To:</B> opencms-dev@opencms.org<BR><B>Subject:</B> [opencms-dev] 
  Site Map<BR><BR></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN class=312351309-30102003>Hi 
  All,</SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN 
  class=312351309-30102003></SPAN></FONT> </DIV>
  <DIV><FONT face=Arial size=2><SPAN class=312351309-30102003>I know for sure 
  that some one has done it before a dynamic sitemap. So to avoid reinventing 
  the wheel could some one please give me a sample to start 
  from.</SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN 
  class=312351309-30102003></SPAN></FONT> </DIV>
  <DIV><FONT face=Arial size=2><SPAN 
  class=312351309-30102003>Regards,</SPAN></FONT></DIV>
  <DIV><FONT face=Arial size=2><SPAN 
  class=312351309-30102003></SPAN></FONT> </DIV>
  <DIV><FONT face=Arial size=2><SPAN class=312351309-30102003>Martijn 
  Schiferli</SPAN></FONT></DIV></BLOCKQUOTE></BODY></HTML>