<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1264" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=780123818-24102003><FONT face=Arial color=#0000ff size=2>What
value does your "template" property currently hold?</FONT></SPAN></DIV>
<DIV><SPAN class=780123818-24102003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=780123818-24102003><FONT face=Arial color=#0000ff
size=2>"Inclusion Loop" basically means that you've got a trail of includes
that's circling back on itself. Its simplest form would be if your
index.jsp attempts to include itself, but it can also occur, for example, if it
includes template.jsp, which in turn includes index.jsp.</FONT></SPAN></DIV>
<DIV><SPAN class=780123818-24102003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=780123818-24102003><FONT face=Arial color=#0000ff size=2>I'd
start by checking your "template" property, because that's controlling what file
gets included for your templating. I suspect you'll find that it's somehow
pointing back at the file you're working with.</FONT></SPAN></DIV>
<DIV><SPAN class=780123818-24102003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=780123818-24102003><FONT face=Arial color=#0000ff
size=2>--</FONT></SPAN></DIV>
<DIV><SPAN class=780123818-24102003><FONT face=Arial color=#0000ff size=2>Mark
Roedel</FONT></SPAN></DIV>
<DIV><SPAN class=780123818-24102003><FONT face=Arial color=#0000ff size=2>Web
Programmer / Analyst</FONT></SPAN></DIV>
<DIV><SPAN class=780123818-24102003><FONT face=Arial color=#0000ff
size=2>LeTourneau University</FONT></SPAN></DIV>
<DIV><SPAN class=780123818-24102003><FONT face=Arial color=#0000ff
size=2></FONT></SPAN><SPAN class=780123818-24102003><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B>
opencms-dev-admin@opencms.org [mailto:opencms-dev-admin@opencms.org] <B>On
Behalf Of </B>dny@sdcgrp.com<BR><B>Sent:</B> Thursday, October 23, 2003 2:13
AM<BR><B>To:</B> opencms-dev@opencms.org<BR><B>Subject:</B> [opencms-dev]
inclusion loop error<BR><BR></FONT></DIV><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></BLOCKQUOTE></BODY></HTML>