<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>inclusion loop error</TITLE>
</HEAD>
<BODY>
<BR>
<P><FONT SIZE=2>Hello,</FONT>
</P>
<P><FONT SIZE=2> Why I'm failed when creating a jsp page (index.jsp) using my template (mytemplate_standard.jsp)? (A html page is OK)</FONT>
</P>
<P><FONT SIZE=2> What does "inclusion loop" error mean?</FONT>
</P>
<P><FONT SIZE=2>Here is the content of my index.jsp page:</FONT>
</P>
<P><FONT SIZE=2><%@ page session="true" %></FONT>
<BR><FONT SIZE=2><%@ taglib prefix="cms" uri="<A HREF="http://www.opencms.org/taglib/cms" TARGET="_blank">http://www.opencms.org/taglib/cms</A>" %></FONT>
<BR><FONT SIZE=2><cms:include property="template" suffix=".jsp" element="new_head" /></FONT>
<BR><FONT SIZE=2><cms:include property="template" suffix=".jsp" element="new_body" /></FONT>
<BR><FONT SIZE=2><cms:include property="template" suffix=".jsp" element="newfoot" /></FONT>
</P>
<P><FONT SIZE=2>Below is my opencms folder:</FONT>
</P>
<P><FONT SIZE=2> (Root folder) </FONT>
<BR><FONT SIZE=2> |--myproject </FONT>
<BR><FONT SIZE=2> |-- |--index.jsp</FONT>
<BR><FONT SIZE=2> |--release </FONT>
<BR><FONT SIZE=2> |--system </FONT>
<BR><FONT SIZE=2> |-- |--bodies </FONT>
<BR><FONT SIZE=2> |-- |--galleries </FONT>
<BR><FONT SIZE=2> |-- |--login </FONT>
<BR><FONT SIZE=2> |-- |--modules </FONT>
<BR><FONT SIZE=2> |-- |-- |--org.mymodule.default </FONT>
<BR><FONT SIZE=2> |-- |-- |-- |--classes </FONT>
<BR><FONT SIZE=2> |-- |-- |-- |--contenttemplates </FONT>
<BR><FONT SIZE=2> |-- |-- |-- |--elements </FONT>
<BR><FONT SIZE=2> |-- |-- |-- |--frametemplates </FONT>
<BR><FONT SIZE=2> |-- |-- |-- |--jsptemplates </FONT>
<BR><FONT SIZE=2> |-- |-- |-- |-- |--mytemplate_standard.jsp</FONT>
<BR><FONT SIZE=2> |-- |-- |-- |--lib </FONT>
<BR><FONT SIZE=2> |-- |-- |-- |--pages </FONT>
<BR><FONT SIZE=2> |-- |-- |-- |--resources </FONT>
<BR><FONT SIZE=2> |-- |-- |-- |--templates </FONT>
<BR><FONT SIZE=2> |-- |-- |-- |-- |--mytemplate_standard</FONT>
<BR><FONT SIZE=2> |-- |-- |--org.opencms.default </FONT>
<BR><FONT SIZE=2> |-- |-- |--org.opencms.templates </FONT>
<BR><FONT SIZE=2> |-- |-- |--org.opencms.welcome </FONT>
<BR><FONT SIZE=2> |-- |--shared </FONT>
<BR><FONT SIZE=2> |-- |--workplace </FONT>
<BR><FONT SIZE=2> </FONT>
<BR><FONT SIZE=2>The error is:</FONT>
</P>
<P><FONT SIZE=2>javax.servlet.ServletException: Resource loader error in file '/myproject/index.jsp'</FONT>
</P>
<P><FONT SIZE=2>Root cause:</FONT>
<BR><FONT SIZE=2>javax.servlet.ServletException: FlexDispatcher: Dectected inclusion loop for target /myproject/index.jsp</FONT>
<BR> <FONT SIZE=2>at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:463)</FONT>
</P>
<BR>
<P><FONT SIZE=2>Thanks,</FONT>
<BR><FONT SIZE=2>Yendung</FONT>
</P>
</BODY>
</HTML>