[opencms-dev] VFS target "/path/filename.jsp" was already included earlier
Panos Kavalagios
Panagiotis.Kavalagios at eurodyn.com
Tue Jan 31 10:32:13 CET 2006
Hi Mike,
This message is exactly what it is saying. You are trying to
re-include a template due to a wrong template property configuration.
Are you sure that template property points to the correct file? Try to
print cms.property("template") value to check and you may use instead:
String mytemplate="/my/temlpate";
cms.include(mytemplate, "head");
to include the correct template. Note that included templates have
access to the properties of the file which have been included and not to
their own properties.
Regards,
Panos
mwpowell at adelphia.net wrote:
> I am receiving an error message when I attempt to view a jsp page and include a template using the following code...
>
> <%
> org.opencms.jsp.CmsJspActionElement cms = new org.opencms.jsp.CmsJspActionElement(pageContext, request, response);
>
> cms.include(cms.property("template"), "head");
>
> Some html text here.
> %>
>
> The error I am receiving is "VFS target "/path/filename.jsp" was already included earlier". Does anyone have any ideas on the root cause of this message? I have a duplicate environment where this code works flawlessly. I'm not certain what the differences are between the environments, but the code is identical.
>
> Thanks in advance.
>
> Mike
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
--
Panagiotis Th. Kavalagios
Electrical & Computer Engineer
European Dynamics S.A.
Athens, Hellas
Tel: +30-210-8094500
More information about the opencms-dev
mailing list