Michael,<div><br></div><div>That was it! Thank you so much! I re-read the wiki page and noticed that this was written on that page but was written in a manner which did not stand out to a new developer. So, I added a little emphasis on that page.</div>
<div><br></div><div>Thanks again Michael.</div><div><br></div><div>Best,</div><div>Tim<br><br><div class="gmail_quote">On Mon, Dec 28, 2009 at 1:19 AM, Michael Emmerich <span dir="ltr"><<a href="mailto:emmerich@german-navy.de">emmerich@german-navy.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Tim,<br>
<br>
if you use the<br>
<div class="im"><br>
<cms:include<br>
  file="/system/modules/genvega/templates/common_elements/common.jsp"<br>
element="htmlhead"/><br>
<br>
</div>Tag, everything inside the <cms:template<br>
element="htmlhead">...</cms:template> is included AND everything that is<br>
not inside a <cms:template ...> tag as well.<br>
<br>
So if you seperate a jsp by unsing the <cms:template> tag, take care<br>
that all parts of your JSP are inside one of those tags.<br>
Normally your JSP would at least look like this:<br>
<br>
<cms:template element="htmlhead"><br>
HTML code here<br>
</cms:template><br>
<cms:template element="htmlfoot"><br>
HTML code here<br>
</cms:template><br>
<br>
No HTML must be outside the <cms:template> tags!<br>
<br>
Kind regards,<br>
Michael Emmerich<br>
<div class="im"><br>
<br>
> Folks,<br>
><br>
> I have consulted the wiki, Liliedahl book and the javadocs etc. I am<br>
> trying to do the very simple task of including an element of another<br>
> file into my jsp using the cms:include tag. For whatever reason, opencms<br>
> keeps including the entire target file instead of the named element. I<br>
> must have a mistake somewhere but i cant seem to find it. How does one<br>
> do this? Here is what I have in my calling JSP:<br>
><br>
> <cms:include<br>
> file="/system/modules/genvega/templates/common_elements/common.jsp"<br>
>  element="htmlhead"/><br>
><br>
> and here is the common.jsp<br>
><br>
> <%@ page language="java" contentType="text/html; charset=UTF-8"<br>
>     pageEncoding="UTF-8"%><br>
> <%@ taglib prefix="cms" uri="<a href="http://www.opencms.org/taglib/cms" target="_blank">http://www.opencms.org/taglib/cms</a>" %><br>
><br>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"<br>
> "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" target="_blank">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>"><br>
> <html xmlns="<a href="http://www.w3.org/1999/xhtml" target="_blank">http://www.w3.org/1999/xhtml</a>"><br>
> *<cms:template element="htmlhead">*<br>
> <head><br>
> <title><cms:property name="Title" escapeHtml="true" /></title><br>
</div>> <meta http-equiv="Content-Type" content="text/html; /><br>
<div><div></div><div class="h5">> <link rel="stylesheet" type="text/css"<br>
> href="<cms:link>../resources/css/style.css</cms:link>" /><br>
> <link rel="stylesheet" type="text/css"<br>
> href="<cms:link>../resources/css/style_cf.css</cms:link>" /><br>
> <link rel="stylesheet" type="text/css"<br>
> href="<cms:link>../resources/css/reset.css</cms:link>" /><br>
> <link rel="stylesheet" type="text/css"<br>
> href="<cms:link>../resources/css/prettyPhoto.css</cms:link>"<br>
> media="screen" /><br>
> <!-- link rel="stylesheet" type="text/css" href="css/style.css" /><br>
> <link rel="stylesheet" type="text/css" href="css/style_cf.css" /><br>
> <link rel="stylesheet" type="text/css" href="css/reset.css" /><br>
> <link rel="stylesheet" type="text/css" href="css/prettyPhoto.css"<br>
> media="screen" / --><br>
><br>
> <script type="text/javascript"<br>
> src="<cms:link>../resources/js/jquery-1.3.2.min.js</cms:link>"></script><br>
> <script type="text/javascript"<br>
> src="<cms:link>../resources/js/jquery.cycle.all.min.js</cms:link>"></script><br>
> <script type="text/javascript"<br>
> src="<cms:link>../resources/js/jquery.easing.1.1.1.js</cms:link>"></script><br>
> <script type="text/javascript"<br>
> src="<cms:link>../resources/js/script.js</cms:link>"></script><br>
> <script type="text/javascript"<br>
> src="<cms:link>../resources/js/jquery.prettyPhoto.js</cms:link>"></script><br>
> <script t......<br>
><br>
> continued till<br>
> *<cms:template>*<br>
> and further until </html><br>
><br>
><br>
</div></div>> ------------------------------------------------------------------------<br>
><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 href="http://lists.opencms.org/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br>
<br>
<br>
--<br>
Home   : <a href="mailto:emmerich@german-navy.de">emmerich@german-navy.de</a><br>
Work   : <a href="mailto:m.emmerich@alkacon.com">m.emmerich@alkacon.com</a><br>
WWW    : German Naval History <a href="http://www.german-navy.de" target="_blank">http://www.german-navy.de</a><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 href="http://lists.opencms.org/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/mailman/listinfo/opencms-dev</a><br>
</blockquote></div><br></div>