<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2668" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=250404604-08082005>Hi
there dear friend</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=250404604-08082005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=250404604-08082005>I am
stuck an need your help. Its amazing how easy it is to get stuck with a simple
template.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=250404604-08082005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=250404604-08082005>I have
read the Documentation from cover to cover I have studied the Java API and am
even an experienced Java Programmer</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=250404604-08082005>but
that does not help me</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=250404604-08082005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=250404604-08082005>The
Problem I have is I cant make this simple template work
</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=250404604-08082005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=250404604-08082005>I
wanted a simple template with :</SPAN></FONT></DIV>
<UL>
<LI><FONT face=Arial color=#0000ff size=2><SPAN
class=250404604-08082005>breadcrumb</SPAN></FONT></LI>
<LI><FONT face=Arial color=#0000ff size=2><SPAN
class=250404604-08082005>menu</SPAN></FONT></LI>
<LI><FONT face=Arial color=#0000ff size=2><SPAN class=250404604-08082005>body
text(content)</SPAN></FONT></LI>
<LI><FONT face=Arial color=#0000ff size=2><SPAN
class=250404604-08082005>optionally a footer</SPAN></FONT></LI></UL>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=250404604-08082005>I
wrote a simple one</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=250404604-08082005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=250404604-08082005>There
are no examples associated with the API so that is also not very
useful</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=250404604-08082005>So I
could not figure how to make my breadcrumb</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=250404604-08082005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=250404604-08082005>I can
not get the template to deliver content ( I assume that is "body"
content)</SPAN></FONT></DIV>
<DIV><SPAN class=250404604-08082005><FONT face=Arial color=#0000ff size=2>I have
not been able to make a Editable template </FONT></SPAN></DIV>
<DIV><SPAN class=250404604-08082005><FONT face=Arial color=#0000ff size=2>I
studied the API to see how to get a breadcrumb but with no example I am at a
loss</FONT></SPAN></DIV>
<DIV><SPAN class=250404604-08082005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=250404604-08082005><FONT face=Arial color=#0000ff size=2>It
seems that you can only use TemplateOne </FONT></SPAN></DIV>
<DIV><SPAN class=250404604-08082005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=250404604-08082005><FONT face=Arial color=#0000ff size=2>unless
you buy a template from someone ( a wizard or great magician)
</FONT></SPAN></DIV>
<DIV><SPAN class=250404604-08082005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=250404604-08082005><FONT face=Arial color=#0000ff size=2>or buy
a book from somewhere which has a working example</FONT></SPAN></DIV>
<DIV><SPAN class=250404604-08082005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=250404604-08082005><FONT face=Arial color=#0000ff size=2>So
please help me </FONT></SPAN></DIV>
<P><FONT face=Arial color=#0000ff size=2>With kind regards</FONT> <BR><FONT
face=Arial color=#0000ff size=2>Nic<SPAN class=250404604-08082005>o</SPAN>
</FONT></P>
<P><FONT face=Arial><FONT color=#0000ff><FONT size=2> <SPAN
class=250404604-08082005>
</SPAN><SPAN class=250404604-08082005>Here is my source code for what
should be a very simple and complete template
</SPAN></FONT></FONT></FONT></P>
<P><FONT face=Arial><FONT color=#0000ff><FONT size=2><SPAN
class=250404604-08082005> <SPAN
class=250404604-08082005>
</SPAN>But three days later I still cant make it
work</SPAN></FONT></FONT></FONT></P>
<BLOCKQUOTE>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=250404604-08082005>If
only I could get it to work I would want to share it with the <BR>Open
Cms Community to save others the blood, sweat and tears</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=250404604-08082005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=250404604-08082005>_______________Code follows this line :
veryBasicTemplate1.jsp _____________________________</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=250404604-08082005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=250404604-08082005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=250404604-08082005><!--- veryBasicTemplate1.jsp
---></SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=250404604-08082005><%@ page import="java.util.*" %><BR><%@
taglibprefix="cms" uri="<A
href='http://www.opencms.org/taglib/cms"%'>http://www.opencms.org/taglib/cms"%</A>></SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=250404604-08082005><% <BR> // java declarations go here
:</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=250404604-08082005><BR> // Create a JSP action element
for getting body content<BR> org.opencms.jsp.CmsJspActionElement
cmsAct= new org.opencms.jsp.CmsJspActionElement(pageContext, request,
response); </SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=250404604-08082005></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=250404604-08082005>//Create a Navbuilder object for generating the Menu
(at least this code is working)<BR> org.opencms.jsp.CmsJspNavBuilder
nav=new org.opencms.jsp.CmsJspNavBuilder();<BR>%></SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=250404604-08082005><html><BR> <head><BR> <title>OpenCms
-<cms:property name="Title" escapeHtml="true"
/></title><BR> </head><BR> <body><BR> <b>Template
Version V.nm.002</b><br><br><BR> <b>Title
<cms:property name="Title"
/></b><br><br></SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=250404604-08082005> <!-- Simple breadcrumb starts here
--><BR> <%//=nav.getNavigationBreadCrumb() // I cant figure
out how to call this method %><BR> <!-- Simple breadcrumb
ends here
--> <BR> <br><br>
<BR> <!-- Navigation starts here This is working
--> <BR> The Menu goes here
:<br> <BR> <%
<BR>
// Get a simple navigation of all pages / subfolders in the
current folder<BR>
List list =
cmsAct.getNavigation().getNavigationForFolder();<BR>
Iterator i = list.iterator();</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=250404604-08082005>
while (i.hasNext())
{<BR>
org.opencms.jsp.CmsJspNavElement ne =
(org.opencms.jsp.CmsJspNavElement)i.next();<BR>
out.println("<br><a href=\"" +
cmsAct.link(ne.getResourceName()) +
"\">");<BR>
out.println(ne.getTitle() +
"</a>");<BR>
}
<BR>
out.println("<br>");<BR> %> <BR> <!--
Navigation ends here
--> <BR> <br><br><BR> <!-- Main
page body starts here -->Body goes here :<br>
<BR> <%<BR>
// this is not working there is no content on plage and it is not
editable<BR>
cmsAct.include(null,"body",true);
//include a direct editable page body<BR> %>
<BR> <!-- Main page body ends here
--> <BR> <br><br><BR> Footer goes
here
:<br></td><BR>
<!-- I could not figure out how to code a footer to be put on the
page--><BR> </body><BR></html></SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=250404604-08082005></SPAN></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=250404604-08082005></SPAN></FONT> </DIV>
<DIV> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=250404604-08082005></SPAN></FONT> </DIV></BLOCKQUOTE>
<DIV>__________________________________________________________________________________________________________________________________</DIV>
<DIV><SPAN class=236492506-24112004><FONT size=2><SPAN lang=EN-ZA
style="FONT-SIZE: 9pt; LAYOUT-GRID-MODE: line; FONT-FAMILY: Arial; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-ZA; mso-fareast-language: EN-US; mso-bidi-language: AR-SA"><STRONG><SPAN
lang=EN-US
style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-bidi-font-size: 12.0pt">Standard
Bank Disclaimer and Confidentiality Note<O:P></O:P></SPAN></STRONG>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt"><SPAN
style="FONT-SIZE: 9pt; mso-bidi-font-size: 12.0pt"><O:P></O:P></SPAN></P>
<P class=MsoBodyText
style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; TEXT-ALIGN: justify"><SPAN
lang=EN-US
style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-bidi-font-size: 12.0pt">This
e-mail, its attachments and any rights attaching hereto are, unless the context
clearly indicates otherwise, the property of Standard Bank Group Limited
</SPAN><SPAN lang=EN-US
style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-bidi-font-size: 12.0pt">and/or
its subsidiaries ("the Group"). It is confidential, private and intended for the
addressee only.</SPAN></P>
<P class=MsoBodyText
style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; TEXT-ALIGN: justify"><SPAN
lang=EN-US
style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-bidi-font-size: 12.0pt"></SPAN><SPAN
lang=EN-US
style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-bidi-font-size: 12.0pt">Should
you not be the addressee and receive this e-mail by </SPAN><SPAN lang=EN-US
style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-bidi-font-size: 12.0pt">mistake,
kindly notify the sender, and delete this e-mail, immediately and do not
disclose or use same in any manner whatsoever. </SPAN><SPAN lang=EN-US
style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-bidi-font-size: 12.0pt">Views and
opinions expressed </SPAN><SPAN lang=EN-US
style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-bidi-font-size: 12.0pt">in this
e-mail are those of the sender unless clearly stated as those of the Group. The
Group </SPAN><SPAN lang=EN-US
style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 'Arial Unicode MS'">accepts
no liability whatsoever for any loss or damages </SPAN><SPAN lang=EN-US
style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 'Arial Unicode MS'">whatsoever
and howsoever incurred, or suffered, resulting, or arising, from the use of this
email or its attachments.</SPAN></P>
<P class=MsoBodyText
style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; TEXT-ALIGN: justify"><SPAN
lang=EN-US
style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 'Arial Unicode MS'"></SPAN><SPAN
lang=EN-US
style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 'Arial Unicode MS'">The
Group does not warrant the integrity of this </SPAN><SPAN lang=EN-US
style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 'Arial Unicode MS'">e-mail
nor that it is free of errors, viruses, interception or interference.
</SPAN><SPAN
style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-bidi-font-size: 12.0pt; mso-ansi-language: EN-GB">Licensed
divisions of the Standard Bank Group are authorised financial services providers
in terms of the Financial Advisory and Intermediary Services Act, No 37 of 2002
(FAIS).</SPAN><SPAN lang=EN-US
style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-bidi-font-size: 12.0pt"><O:P></O:P></SPAN></P>
<P class=MsoBodyText
style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal; TEXT-ALIGN: justify"><SPAN
lang=EN-US
style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-bidi-font-size: 12.0pt"><O:P></O:P></SPAN></P>
<P class=MsoBodyText style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: normal"><SPAN
lang=EN-US
style="FONT-SIZE: 9pt; FONT-FAMILY: Arial; mso-bidi-font-size: 12.0pt; mso-fareast-font-family: 'Arial Unicode MS'">For
information about the Standard Bank Group Limited visit our website <A
href="http://www.standardbank.co.za"><FONT
color=#0000ff>http://www.standardbank.co.za</FONT></A></SPAN></P></SPAN></FONT></SPAN><FONT
color=#0000ff><FONT
color=#000000>__________________________________________________________________________________________________________________________________<BR></FONT></DIV></FONT>
</BODY></HTML>