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!
yashrs Posted June 17, 2014 Posted June 17, 2014 Try this:-<%@ include file="/home/<username>/public_html/include/inc.jsp" %>
ragnetto Posted June 17, 2014 Author Posted June 17, 2014 Yes i try but don't work..........other code?
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now