No, this is not a bug. This is added in Jrun 3.1 to prevent the include to
go into infinite recursion. I would think  the need for including the same
file multiple times is limited in real app.  When you have to use it, you
can either rename the page to a different name, or repeat the content in one
page.

-----Original Message-----
From: Rogério Garibalde Miranda [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 12, 2001 10:06 AM
To: JRun-Talk
Subject: RE: JRun 3.1 error in parsing JSPs with repeated include
directiv es


The same error occur in win 2000 with Jrun 3.1 and jdk 1.3


-----Original Message-----
From: Pan, Sue [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 08, 2001 1:43 PM
To: JRun-Talk
Subject: JRun 3.1 error in parsing JSPs with repeated include directives


Hi,

I've discovered a weird problem in parsing a JSP page with repeated include
directives when migrating my application from JRun 3.0 to JRun 3.1.  The
problem boils down to the following:

e.g. for a simple JSP page "TestInclude.jsp" as follows:

<html>
<body>
<%@ include file="tmp.jsp" %>
<%@ include file="tmp.jsp" %>
</body>
</html>

and "tmp.jsp" containing only

<p>This is a test</p>

In JRun 3.0, this worked fine, but JRun 3.1 gives me the following error:

Parse Error in JSP page: The include directive on line 4 of page
/docs/TestInclude.jsp The page '/docs/tmp.jsp' cannot be included, including
it here will cause infinite recursion.
allaire.jrun.jsp.ParseException: The include directive on line 4 of page
/docs/TestInclude.jsp The page '/docs/tmp.jsp' cannot be included, including
it here will cause infinite recursion.
        at
allaire.jrun.jsp.JSPParser.throwDirectiveException(../jsp/JSPParser.java:535
)
        at
allaire.jrun.jsp.JSPParser.includeDirective(../jsp/JSPParser.java:722)
        at allaire.jrun.jsp.JSPParser.directive(../jsp/JSPParser.java:968)
        at allaire.jrun.jsp.JSPParser.parse(../jsp/JSPParser.java:921)
        at allaire.jrun.jsp.JSPParser.writeXML(../jsp/JSPParser.java:135)
        at allaire.jrun.jsp.JSPParser.generateXML(../jsp/JSPParser.java:107)
        at allaire.jrun.jsp.JSPParser.generateXML(../jsp/JSPParser.java:51)
        at allaire.jrun.jsp.Translator.parsePage(../jsp/Translator.java:192)
        at allaire.jrun.jsp.Translator.translate(../jsp/Translator.java:390)
        at allaire.jrun.jsp.Translator.translate(../jsp/Translator.java:92)
        at
allaire.jrun.jsp.JSPTranslator.translate(../jsp/JSPTranslator.java:75)
        at
allaire.jrun.jsp.JSPTranslator.translate(../jsp/JSPTranslator.java:67)
        at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:216)
        at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:196)
        at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1416)
        at
allaire.jrun.session.JRunSessionService.service(../session/JRunSessionServic
e.java:1082)
        at
allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:1270)
        at
allaire.jrun.servlet.JRunRequestDispatcher.forward(../servlet/JRunRequestDis
patcher.java:89)
        at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1552)
        at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1542)
        at
allaire.jrun.servlet.JvmContext.dispatch(../servlet/JvmContext.java:364)
        at allaire.jrun.http.WebEndpoint.run(../http/WebEndpoint.java:115)
        at allaire.jrun.ThreadPool.run(../ThreadPool.java:272)
        at allaire.jrun.WorkerThread.run(../WorkerThread.java:75)


If I modify the second include directive in "TestInclude.jsp" to different
page, 
say <%@ include="tmp1.jsp" %>, with "tmp1.jsp" having the same content as
"tmp.jsp".  The page would work.  Is this a bug?

I'm using JDK1.3.1 and JRun 3.1 in the NT environment. 

Your inputs are appreciated.

Sue
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to