Folks,<div><br></div><div>I have consulted the wiki, Liliedahl book and the javadocs etc. I am trying to do the very simple task of including an element of another file into my jsp using the cms:include tag. For whatever reason, opencms keeps including the entire target file instead of the named element. I must have a mistake somewhere but i cant seem to find it. How does one do this? Here is what I have in my calling JSP:</div>
<div><div><br></div><div><cms:include file="/system/modules/genvega/templates/common_elements/common.jsp"  element="htmlhead"/></div><div><br></div><div>and here is the common.jsp</div><div><br></div>
<div><div><%@ page language="java" contentType="text/html; charset=UTF-8"</div><div>    pageEncoding="UTF-8"%></div><div><%@ taglib prefix="cms" uri="<a href="http://www.opencms.org/taglib/cms">http://www.opencms.org/taglib/cms</a>" %></div>
<div><br></div><div><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd</a>"></div>
<div><html xmlns="<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>"></div><div><b><cms:template element="htmlhead"></b></div><div><head> </div><div><title><cms:property name="Title" escapeHtml="true" /></title></div>
<div><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></div><div><link rel="stylesheet" type="text/css" href="<cms:link>../resources/css/style.css</cms:link>" /></div>
<div><link rel="stylesheet" type="text/css" href="<cms:link>../resources/css/style_cf.css</cms:link>" /></div><div><link rel="stylesheet" type="text/css" href="<cms:link>../resources/css/reset.css</cms:link>" /></div>
<div><link rel="stylesheet" type="text/css" href="<cms:link>../resources/css/prettyPhoto.css</cms:link>" media="screen" /></div><div><!-- link rel="stylesheet" type="text/css" href="css/style.css" /></div>
<div><link rel="stylesheet" type="text/css" href="css/style_cf.css" /></div><div><link rel="stylesheet" type="text/css" href="css/reset.css" /></div>
<div><link rel="stylesheet" type="text/css" href="css/prettyPhoto.css" media="screen" / --></div><div><br></div><div><script type="text/javascript" src="<cms:link>../resources/js/jquery-1.3.2.min.js</cms:link>"></script></div>
<div><script type="text/javascript" src="<cms:link>../resources/js/jquery.cycle.all.min.js</cms:link>"></script></div><div><script type="text/javascript" src="<cms:link>../resources/js/jquery.easing.1.1.1.js</cms:link>"></script></div>
<div><script type="text/javascript" src="<cms:link>../resources/js/script.js</cms:link>"></script></div><div><script type="text/javascript" src="<cms:link>../resources/js/jquery.prettyPhoto.js</cms:link>"></script></div>
<div><script t......</div><div><br></div><div>continued till </div><div><b><cms:template></b></div><div>and further until </html></div></div><div><br></div></div>