[opencms-dev] javax.servlet.ServletException: javax.servlet.jsp.JspException: VFS target "somefile" was already included earlier

Corbey, Clayton CorbeyC at brandonrha.mb.ca
Fri Aug 11 18:41:33 CEST 2006


Here's some insight on why one may get this error message...

 

The elements you are including from a template must have the
<cms:template .... /> tag around all code...

 

i.e.

 

<cms:template element="head">

<html>

<head>

<title>

</cms:template>

<cms:template element="title">

<cms:include element="title" />

</cms:template>

<cms:template element="body">

</title>

<body>

</cms:template>

<cms:template element="breadcrumb">

<cms:include file="../jsptemplates/breadcrumb" />

</cms:template>

...

 

My <cms:include ../> tags must have a <cms:template ... /> tag around
them.

 

You cannot have:

 

</cms:template>

<cms:include element="title" />

<cms:template element="body">

 

-Clayton

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060811/9af2b5c3/attachment.htm>


More information about the opencms-dev mailing list