[opencms-dev] Including jsps

Ulrich Rueth lists at rueth.info
Mon Jan 10 21:39:04 CET 2005


Hi all,

I want to store the following parts of a jsp in a separate file in order to
be able to include it in the "master" jsp at several places without having
to copy-paste the code:

<%@ page session="false" %>
<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>
<table class="articleinfos">
	<cms:contentloop element="Info">
		<cms:contentcheck ifexists="Title">
			<tr><td class="infotitle"><cms:contentshow element="Title" /></td></tr>
		</cms:contentcheck>
		<tr><td class="infodescription"><cms:contentshow element="Text"
/></td></tr>
	</cms:contentloop>
</table><br>

Unfortunately, OpenCms claims that the enclosing tag is missing. This is
true if I used the file stand-alone, but included in the master jsp file
everything will be there. Can I achieve this anyhow?

Thanks and regards
Ulrich




More information about the opencms-dev mailing list