[opencms-dev] inclusion loop error

Roedel, Mark MarkRoedel at letu.edu
Fri Oct 24 21:13:01 CEST 2003


What value does your "template" property currently hold?
 
"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.
 
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.
 
--
Mark Roedel
Web Programmer / Analyst
LeTourneau University
 

	-----Original Message-----
	From: opencms-dev-admin at opencms.org
[mailto:opencms-dev-admin at opencms.org] On Behalf Of dny at sdcgrp.com
	Sent: Thursday, October 23, 2003 2:13 AM
	To: opencms-dev at opencms.org
	Subject: [opencms-dev] inclusion loop error
	
	


	Hello, 

	 Why I'm failed when creating a jsp page (index.jsp) using my
template (mytemplate_standard.jsp)? (A html page is OK) 

	 What does "inclusion loop" error mean? 

	Here is the content of my index.jsp page: 

	<%@ page session="true" %> 
	<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms"
%> 
	<cms:include property="template" suffix=".jsp"
element="new_head" /> 
	<cms:include property="template" suffix=".jsp"
element="new_body" /> 
	<cms:include property="template" suffix=".jsp" element="newfoot"
/> 

	Below is my opencms folder: 

	 (Root folder)  
	    |--myproject  
	    |--  |--index.jsp 
	    |--release  
	    |--system  
	    |--  |--bodies  
	    |--  |--galleries  
	    |--  |--login  
	    |--  |--modules  
	    |--  |--  |--org.mymodule.default  
	    |--  |--  |--  |--classes  
	    |--  |--  |--  |--contenttemplates  
	    |--  |--  |--  |--elements  
	    |--  |--  |--  |--frametemplates  
	    |--  |--  |--  |--jsptemplates  
	    |--  |--  |--  |--  |--mytemplate_standard.jsp 
	    |--  |--  |--  |--lib  
	    |--  |--  |--  |--pages  
	    |--  |--  |--  |--resources  
	    |--  |--  |--  |--templates  
	    |--  |--  |--  |--  |--mytemplate_standard 
	    |--  |--  |--org.opencms.default  
	    |--  |--  |--org.opencms.templates  
	    |--  |--  |--org.opencms.welcome  
	    |--  |--shared  
	    |--  |--workplace  
	  
	The error is: 

	javax.servlet.ServletException: Resource loader error in file
'/myproject/index.jsp' 

	Root cause: 
	javax.servlet.ServletException: FlexDispatcher: Dectected
inclusion loop for target /myproject/index.jsp 
	        at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex
tImpl.java:463) 


	Thanks, 
	Yendung 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20031024/226535cf/attachment.htm>


More information about the opencms-dev mailing list