ragnetto Posted June 17, 2014 Posted June 17, 2014 In my jsp page I insert the inclusion directive: <%@ include file="......" %>, if the file to inclusion is in the directory of a main file jsp works, but if the file to inclusion is in the other directory don't work! error 500 file not found etc... For <jsp:include.... works....but i put statically file...whats the correct path???? thanks.... this is example of my problem! : if: |-----[main.jsp] |---------- [pages(folder)]-----| | |-----[inc.jsp]public_html --------| I insert in main.jsp the directive: <%@ include file="inc.jsp" %> this works! But if: |---------- [pages(folder)]-----|-----[main.jsp] | public_html --------|---------- [include(folder)]---|-----[inc.jsp] | I insert in main.jsp the directive: <%@ include file="../include/inc.jsp" %> or: <%@ include file="/include/inc.jsp" %> or: <%@ include file="/public_html/include/inc.jsp" %> or: <%@ include file="../../include/inc.jsp" %> server get: HTTP Status 500 - /principale10.jsp (line: 13, column: 1) File "........jsp" not found Whyyyy???? whats the correct path???? only static directive please....Tanks in advance! Quote
yashrs Posted June 17, 2014 Posted June 17, 2014 Try this:-<%@ include file="/home/<username>/public_html/include/inc.jsp" %> Quote
ragnetto Posted June 17, 2014 Author Posted June 17, 2014 Yes i try but don't work..........other code? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.