You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Peter Jasko <pe...@liquidexchange.co.uk> on 2000/06/29 11:13:49 UTC
File inclusion path question
I have 3 JSP files A.jsp, B.jsp, C.jsp. I use the static include mechanism.
A.jsp in in subdir, \X while B.jsp and C.jsp are in the root directory, \
A.jsp includes B.jsp using the path "../B.jsp"
B.jsp include C.jsp using the path "C.jsp"
I get an error when compiling A.jsp, unless I change the path in B.jsp to
"../C.jsp". This is a problem as I want to be able to include "B.jsp" from
say D.jsp also at the root level or say two subdirs down.
Is this the desired behaviour? Suggestions as to what I should do to get
around it, would be greatly appreciated.
Thanks,
Peter