Bug 66295 - Multiple relative <@ include to subfolder not working anymore
Summary: Multiple relative <@ include to subfolder not working anymore
Status: RESOLVED DUPLICATE of bug 66277
Alias: None
Product: Tomcat 9
Classification: Unclassified
Component: Jasper (show other bugs)
Version: 9.0.67
Hardware: All All
: P2 major (vote)
Target Milestone: -----
Assignee: Tomcat Developers Mailing List
Depends on:
Reported: 2022-10-05 11:07 UTC by A.G.
Modified: 2022-10-05 13:09 UTC (History)
0 users


Note You need to log in before you can comment on or make changes to this bug.
Description A.G. 2022-10-05 11:07:41 UTC
If you have a jsp like this:

<%@ include file="include/content1.jsp" %>
<%@ include file="include/content2.jsp" %>

content2.jsp not found and you get this exception:

Caused by: org.apache.jasper.JasperException: /WEB-INF/views/manager/content/content.jsp (Line: [2], Column: [5]) File [include/content2.jsp] not found

both jsp exists and if you link it absolute it works:

<%@ include file="/WEB-INF/views/manager/content/include/content1.jsp" %>
<%@ include file="/WEB-INF/views/manager/content/include/content2.jsp" %>

it seems the second include check relative from the first one and search the jsp at include/include/content2.jsp and there is of course no jsp.
Comment 1 Mark Thomas 2022-10-05 13:09:42 UTC

*** This bug has been marked as a duplicate of bug 66277 ***