<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="place" downloadurl="http://www.5iantlavalamp.com/"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
name="PersonName"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:purple;
text-decoration:underline;}
p
{mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman";}
tt
{font-family:"Courier New";}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:Arial;
color:navy;}
@page Section1
{size:612.0pt 792.0pt;
margin:70.9pt 89.85pt 70.9pt 89.85pt;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thanks Claus for the help!<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I finally got the problem solved. The
system we manage via OpenCMS is a bit complex, so I had to struggle with properties
and additional features of files included.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Anyway, now the site and system work like they
should! <o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thanks again,<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Niina Meronen<o:p></o:p></span></font></p>
<div>
<p><font size=2 color=navy face=Arial><span style='font-size:10.0pt;font-family:
Arial;color:navy'>-- <br>
Niina Meronen<br>
Service Manager<br>
Cidercone Wireless<br>
Paciuksenkatu 21<br>
FI-00270 <st1:place w:st="on"><st1:City w:st="on">Helsinki</st1:City></st1:place><br>
phone +358 9 477 41 610<br>
fax +358 9 477 41 666<br>
<a href="mailto:niina.meronen@cidercone.com">niina.meronen@cidercone.com</a><br>
</span></font><font color=navy><span style='color:navy'><a
href="file:///C:\Documents%20and%20Settings\niina\Application%20Data\Microsoft\Signatures\www.cidercone.com"><font
size=2 face=Arial><span style='font-size:10.0pt;font-family:Arial'>www.cidercone.com</span></font></a></span></font><o:p></o:p></p>
</div>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Claus Priisholm<br>
<b><span style='font-weight:bold'>Sent:</span></b> 18. elokuuta 2004 10:19<br>
<b><span style='font-weight:bold'>To:</span></b> <st1:PersonName w:st="on">The
OpenCms mailing list</st1:PersonName><br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [opencms-dev] content
of called html-page can not be included intemplate </span></font><o:p></o:p></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>I don't recall who
originally made this contribution, I think you can find it in the 2003
archives. It may have further details on the subject, and furthermore I seem to
recall fiddling a bit with the original hack to make it fit my needs, so try to
look it up if the solution below doesn't work for you.<br>
<br>
This is what I've used in a couple of situations where I ran into the same
problem as you, use it as you would the cms.include() method:<br>
<br>
----8<----<br>
public String include_hack(CmsJspActionElement cms, String uri, String element,
Map parameters) throws com.opencms.core.CmsException {<br>
CmsXmlTemplate t = new CmsXmlTemplate();<br>
CmsXmlTemplateFile tf = new CmsXmlTemplateFile(cms.getCmsObject(),
"/system/bodies" + uri);<br>
if (parameters != null) {<br>
try {<br>
HashMap modParameterMap = new HashMap(parameters.size());<br>
// ensure parameters are always of type String[] not just String<br>
Iterator i = parameters.keySet().iterator();<br>
while (i.hasNext()) {<br>
String key = (String)i.next();<br>
Object value = parameters.get(key);<br>
if (value instanceof String[]) {<br>
modParameterMap.put(key, value);<br>
} else {<br>
if (value == null)<br>
value = "null";<br>
String[] newValue = new String[] { value.toString()};<br>
modParameterMap.put(key, newValue);<br>
}<br>
}<br>
parameters = modParameterMap;<br>
} catch (UnsupportedOperationException e) {<br>
// parameter map is immutable, just use it "as is"<br>
}<br>
return tf.getProcessedTemplateContent(t, new Hashtable(parameters), element);<br>
} else {<br>
return tf.getProcessedTemplateContent(t, null, element);<br>
}<br>
}<br>
----8<----<br>
Claus<br>
<br>
OpenCms links & API's: http://www.codedroids.com/community/opencms<br>
--<br>
Claus Priisholm<br>
+45 48 22 46 46<br>
cpr <you know what> codedroids.com<br>
http://www.codedroids.com<br>
<br>
<br>
<br>
On 17/8-2004, at 13.07, Niina Meronen wrote:<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><?fontfamily><?param Times New Roman><?bigger><?bigger>Hi everybody,<br>
<?/bigger><?/bigger><?/fontfamily><br>
<?fontfamily><?param Times New Roman><?bigger><?bigger> <br>
<?/bigger><?/bigger><?/fontfamily><br>
<?fontfamily><?param Times New Roman><?bigger><?bigger>I found a question below
from the mail archive when struggling with similar problem but there were no
answers. So, is there anybody who knows the reason or can explain how to avoid
that problem? In my case we are using OpenCMS 5.0.1., and the problem is that
the content of file that is called (usually index.html) is replaced by previous
file’s content (smaller position in navigation). In other words, previous
file’s content is shown twice when trying to include several html-pages in one
template. The only exception is when the file that is called is the first one
in navigation, then the content of all the files is shown correctly!<br>
<?/bigger><?/bigger><?/fontfamily><br>
<?fontfamily><?param Times New Roman><?bigger><?bigger> <br>
<?/bigger><?/bigger><?/fontfamily><br>
<?fontfamily><?param Times New Roman><?bigger><?bigger>I would really apreciate
the answer, thanks in advance!<br>
<?/bigger><?/bigger><?/fontfamily><br>
<?fontfamily><?param Times New Roman><?bigger><?bigger> <br>
<?/bigger><?/bigger><?/fontfamily><br>
<?fontfamily><?param Times New Roman><?bigger><?bigger>Niina Meronen<br>
<?/bigger><?/bigger><?/fontfamily><br>
<b><?fontfamily><?param Times New Roman><?bigger><?bigger><span
style='font-weight:bold'>---</span><?/bigger><?/bigger><?/fontfamily></b><br>
<br>
<b><?fontfamily><?param Times New Roman><?bigger><?bigger><span
style='font-weight:bold'> </span><?/bigger><?/bigger><?/fontfamily></b><br>
<br>
<b><?fontfamily><?param Times New Roman><?bigger><?bigger><span
style='font-weight:bold'>Frank Wunderlich</span><?/bigger><?/bigger><?/fontfamily></b><?fontfamily><?param Times New Roman><?bigger><?bigger>
<?color><?param 0000,0000,FFFF>k.frank.wunderlich at gmx.de <br>
<?/color><?/bigger><?/bigger><?/fontfamily><i><?fontfamily><?param Times New Roman><?bigger><?bigger><span
style='font-style:italic'>Mon Jun 2 18:55:01 CEST 2003</span><?/bigger><?/bigger><?/fontfamily></i><?fontfamily><?param Times New Roman><?bigger><?bigger>
<br>
<?/bigger><?/bigger><?/fontfamily><?fontfamily><?param Times New Roman><?bigger><?bigger>•
Previous message: <?color><?param 0000,0000,FFFF>[opencms-dev] projectId of
tempfileproject<br>
<?/color><?/bigger><?/bigger><?/fontfamily><?fontfamily><?param Times New Roman><?bigger><?bigger>•
<?color><?param 0000,0000,FFFF><?/color>Next message: <?color><?param 0000,0000,FFFF>[opencms-dev]
Deleting old folders during sync<br>
<?/color><?/bigger><?/bigger><?/fontfamily><?fontfamily><?param Times New Roman><?bigger><?bigger>•
<b><span style='font-weight:bold'><?color><?param 0000,0000,FFFF><?/color>Messages
sorted by:</span></b> <?color><?param 0000,0000,FFFF>[ date ]<?/color> <?color><?param 0000,0000,FFFF>[
thread ]<?/color> <?color><?param 0000,0000,FFFF>[ subject ]<?/color> <?color><?param 0000,0000,FFFF>[
author ]<?/color> <br>
<?/bigger><?/bigger><?/fontfamily><br>
</span></font><tt><?fontfamily><?param Courier New><?x-tad-bigger><font size=2
face="Courier New"><span style='font-size:10.0pt'>Hi,</span></font><?/x-tad-bigger><?/fontfamily></tt><br>
<tt><?fontfamily><?param Courier New><?x-tad-bigger><font size=2
face="Courier New"><span style='font-size:10.0pt'> </span></font><?/x-tad-bigger><?/fontfamily></tt><br>
<tt><?fontfamily><?param Courier New><?x-tad-bigger><font size=2
face="Courier New"><span style='font-size:10.0pt'>I've got the following
problem:</span></font><?/x-tad-bigger><?/fontfamily></tt><br>
<tt><?fontfamily><?param Courier New><?x-tad-bigger><font size=2
face="Courier New"><span style='font-size:10.0pt'> </span></font><?/x-tad-bigger><?/fontfamily></tt><br>
<tt><?fontfamily><?param Courier New><?x-tad-bigger><font size=2
face="Courier New"><span style='font-size:10.0pt'>I have got a
master-jsp-template, that shall dynamically include other</span></font><?/x-tad-bigger><?/fontfamily></tt><br>
<tt><?fontfamily><?param Courier New><?x-tad-bigger><font size=2
face="Courier New"><span style='font-size:10.0pt'>html-pages (resp.
page-fragments), that have their own jsp-template.</span></font><?/x-tad-bigger><?/fontfamily></tt><br>
<tt><?fontfamily><?param Courier New><?x-tad-bigger><font size=2
face="Courier New"><span style='font-size:10.0pt'>That means, both, the
including and the included page are editable via</span></font><?/x-tad-bigger><?/fontfamily></tt><br>
<tt><?fontfamily><?param Courier New><?x-tad-bigger><font size=2
face="Courier New"><span style='font-size:10.0pt'>opencms.</span></font><?/x-tad-bigger><?/fontfamily></tt><br>
<tt><?fontfamily><?param Courier New><?x-tad-bigger><font size=2
face="Courier New"><span style='font-size:10.0pt'> </span></font><?/x-tad-bigger><?/fontfamily></tt><br>
<tt><?fontfamily><?param Courier New><?x-tad-bigger><font size=2
face="Courier New"><span style='font-size:10.0pt'>Unfortunatly the bodycontent
of the main-page is not accessible anymore,</span></font><?/x-tad-bigger><?/fontfamily></tt><br>
<tt><?fontfamily><?param Courier New><?x-tad-bigger><font size=2
face="Courier New"><span style='font-size:10.0pt'>after I have included the
other page.</span></font><?/x-tad-bigger><?/fontfamily></tt><br>
<tt><?fontfamily><?param Courier New><?x-tad-bigger><font size=2
face="Courier New"><span style='font-size:10.0pt'>Instead of showing the
bodycontent of the main-page, the bodycontent of</span></font><?/x-tad-bigger><?/fontfamily></tt><br>
<tt><?fontfamily><?param Courier New><?x-tad-bigger><font size=2
face="Courier New"><span style='font-size:10.0pt'>the included page is shown
again.</span></font><?/x-tad-bigger><?/fontfamily></tt><br>
<tt><?fontfamily><?param Courier New><?x-tad-bigger><font size=2
face="Courier New"><span style='font-size:10.0pt'> </span></font><?/x-tad-bigger><?/fontfamily></tt><br>
<tt><?fontfamily><?param Courier New><?x-tad-bigger><font size=2
face="Courier New"><span style='font-size:10.0pt'>Example:</span></font><?/x-tad-bigger><?/fontfamily></tt><br>
<tt><?fontfamily><?param Courier New><?x-tad-bigger><font size=2
face="Courier New"><span style='font-size:10.0pt'> </span></font><?/x-tad-bigger><?/fontfamily></tt><br>
<tt><?fontfamily><?param Courier New><?x-tad-bigger><font size=2
face="Courier New"><span style='font-size:10.0pt'><cms:include
element="body"
/>
// The correct bodycontent</span></font><?/x-tad-bigger><?/fontfamily></tt><br>
<tt><?fontfamily><?param Courier New><?x-tad-bigger><font size=2
face="Courier New"><span style='font-size:10.0pt'>of my page is displayed</span></font><?/x-tad-bigger><?/fontfamily></tt><br>
<tt><?fontfamily><?param Courier New><?x-tad-bigger><font size=2
face="Courier New"><span style='font-size:10.0pt'><%
cms.include(otherEditableHtmlFile); %> // The content of the</span></font><?/x-tad-bigger><?/fontfamily></tt><br>
<tt><?fontfamily><?param Courier New><?x-tad-bigger><font size=2
face="Courier New"><span style='font-size:10.0pt'>included page is displayed </span></font><?/x-tad-bigger><?/fontfamily></tt><br>
<tt><?fontfamily><?param Courier New><?x-tad-bigger><font size=2
face="Courier New"><span style='font-size:10.0pt'><cms:include
element="body"
/>
// The content of the</span></font><?/x-tad-bigger><?/fontfamily></tt><br>
<tt><?fontfamily><?param Courier New><?x-tad-bigger><font size=2
face="Courier New"><span style='font-size:10.0pt'>included page is shown
again!! </span></font><?/x-tad-bigger><?/fontfamily></tt><br>
<tt><?fontfamily><?param Courier New><?x-tad-bigger><font size=2
face="Courier New"><span style='font-size:10.0pt'> </span></font><?/x-tad-bigger><?/fontfamily></tt><br>
<tt><?fontfamily><?param Courier New><?x-tad-bigger><font size=2
face="Courier New"><span style='font-size:10.0pt'>Looks like some unwanted
sideeffect to me...</span></font><?/x-tad-bigger><?/fontfamily></tt><br>
<tt><?fontfamily><?param Courier New><?x-tad-bigger><font size=2
face="Courier New"><span style='font-size:10.0pt'>Or am I doing something the
wrong way?</span></font><?/x-tad-bigger><?/fontfamily></tt><br>
<tt><?fontfamily><?param Courier New><?x-tad-bigger><font size=2
face="Courier New"><span style='font-size:10.0pt'> </span></font><?/x-tad-bigger><?/fontfamily></tt><br>
<tt><?fontfamily><?param Courier New><?x-tad-bigger><font size=2
face="Courier New"><span style='font-size:10.0pt'>Thanks in advance,</span></font><?/x-tad-bigger><?/fontfamily></tt><br>
<tt><?fontfamily><?param Courier New><?x-tad-bigger><font size=2
face="Courier New"><span style='font-size:10.0pt'>Frank.</span></font><?/x-tad-bigger><?/fontfamily></tt><br>
<br>
<?fontfamily><?param Arial><?x-tad-bigger> <br>
<?/x-tad-bigger><?/fontfamily><br>
<?fontfamily><?param Arial><?x-tad-bigger> <br>
<?/x-tad-bigger><?/fontfamily><br>
<?fontfamily><?param Arial><?x-tad-bigger>-- <br>
<?/x-tad-bigger><?/fontfamily><?fontfamily><?param Arial><?x-tad-bigger>Niina
Meronen<br>
<?/x-tad-bigger><?/fontfamily><?fontfamily><?param Arial><?x-tad-bigger>Service Manager<br>
<?/x-tad-bigger><?/fontfamily><?fontfamily><?param Arial><?x-tad-bigger>Cidercone
Wireless<br>
<?/x-tad-bigger><?/fontfamily><?fontfamily><?param Arial><?x-tad-bigger>Paciuksenkatu
21<br>
<?/x-tad-bigger><?/fontfamily><?fontfamily><?param Arial><?x-tad-bigger>FI-00270
<st1:City w:st="on"><st1:place w:st="on">Helsinki</st1:place></st1:City><br>
<?/x-tad-bigger><?/fontfamily><?fontfamily><?param Arial><?x-tad-bigger>phone
+358 9 477 41 610<br>
<?/x-tad-bigger><?/fontfamily><?fontfamily><?param Arial><?x-tad-bigger>fax
+358 9 477 41 666<br>
<?/x-tad-bigger><?/fontfamily><st1:PersonName w:st="on"><?fontfamily><?param Arial><?color><?param 0000,0000,FFFF><?x-tad-bigger>niina.meronen@cidercone.com</st1:PersonName><br>
<?/x-tad-bigger><?/color><?/fontfamily><?fontfamily><?param Arial><?color><?param 0000,0000,FFFF><?x-tad-bigger>www.cidercone.com<br>
<?/x-tad-bigger><?/color><?/fontfamily><br>
<?fontfamily><?param Times New Roman><?bigger><?bigger> <br>
<?/bigger><?/bigger><?/fontfamily><br>
<br>
_______________________________________________<br>
This mail is send to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
http://mail.opencms.org/mailman/listinfo/opencms-dev<o:p></o:p></p>
</div>
</body>
</html>