• Post Reply Bookmark Topic Watch Topic
  • New Topic

include directive - path of file

 
David Duran
Ranch Hand
Posts: 122
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone shed some light on this anomoly?

test.jsp and includeMe.jsp live in the same directory. BUT I can use any one of those includes below and 1) the page compiles & 2) includeMe is included even though the last two paths are not correct.

<%@ include file="includeMe.jsp" %>
<%@ include file="../includeMe.jsp" %>
<%@ include file="../../includeMe.jsp" %>

It might be helpful to note that the page does NOT compile if I put 1) the wrong filename or 2) actually include a bad directory in the path.
<%@ include file="sincludeMe.jsp" %> <%-- breaks --%>
<%@ include file="../s/includeMe.jsp" %> <%-- breaks --%>
Thanks you.
 
Sudd Ghosh
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is this one of those stuffs for which Tomcat is again leniant ? I remember Tomcat is even leniant for body-content: You can describe it "empty" when the tag actually contains JSP, etc..
Thanks, Sudd
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!