tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vyacheslav Akhmechet <Vyacheslav_Akhmec...@eLiTechnologies.com>
Subject "recursive" includes
Date Wed, 19 Jul 2000 18:32:33 GMT
Hi.
I have the following problem with Tomcat 3.1. I need to include the same
jsp file into another jsp file twice. I'll illustrate it with source
code:



--------------a.jsp-----------------------

<%@ page language="java" import="" %>

<%@ include file="../test/b.jsp"%>
<%@ include file="../test/b.jsp"%>

----------------b.jsp-----------------------------------
<%
{
	int a;
}
%>

-------------------------------------------------------------

Here's the error I am getting:
org.apache.jasper.compiler.ParseException: Seen file b.jsp already,
maybe this is a recursive include?! 

Does anyone know how to work around that?
Thanks for your time.


Mime
View raw message