[opencms-dev] Reason: VFS target resource was already included earlier.

Beejal Kamdar beejal.k at mavericklabel.com
Wed Apr 1 23:10:48 CEST 2009


Hey Jack,

Thanks for your prompt response.

I am sorry if I didn't stated it correctly. The code in my previous  
mail is my template code only and I am writing an editable include in  
that template. So does it require some reference in the advanced  
properties of template itself.




On Apr 1, 2009, at 1:56 PM, Jack Bakker wrote:

> are you missing a reference to the template in the advanced properties
> of the jsp ?
>
> On 01/04/09 04:52 PM, Beejal Kamdar wrote:
>> Hi All,
>>
>> I have the following JSP template in one of my module.
>>
>> <%@ page session="false" %>
>>  <%@ taglib prefix="cms"
>>   uri="http://www.opencms.org/taglib/cms" %>
>>
>>   <!DOCTYPE html public "-//W3C//DTD HTML 4.01 Transitional//EN">
>>   <html>
>>   <head>
>>   <title><cms:property name="Title" escapeHtml="true"/></title>
>>   <link href="<cms:link><cms:property name="resource-path"/
>>> SpryAssets/SpryTooltip.css</cms:link>" rel="stylesheet" type="text/
>> css" />
>>   <cms:editable/>
>>   </head>
>>   <body>
>>   <h1><cms:property name="Title" escapeHtml="true"/></h1>
>>
>>   <cms:template element="body">
>>   <cms:include element="body" editable="true"/>
>>   </cms:template>
>>   </body>
>>
>>   </html>
>>
>>
>>
>> When I try to execute this template with an include for editable, it
>> gives me the error as :
>>
>> javax.servlet.jsp.JspException: javax.servlet.ServletException: VFS
>> target resource "/system/modules/com.mavericklabel.frontend.maverick/
>> templates/testTemplate" was already included earlier.
>> Reason: VFS target resource "/system/modules/
>> com.mavericklabel.frontend.maverick/templates/testTemplate" was
>> already included earlier.
>>
>> If I remove the include statement <cms:include element="body"
>> editable="true"/>, then it executes and works fine but does not show
>> up the editable section.
>>
>> I went through a lot of documentation but couldn't figure out the
>> reason for this error. I want an editable section to be displayed
>> through my JSP template. Can anyone please help me to get out of  
>> this.
>>
>> Thanks
>> Beejal
>>
>>
>> _______________________________________________
>> 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
>
> -- 
>
> ...........
> Jack Bakker
>
> _______________________________________________
> 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




More information about the opencms-dev mailing list