Jump to content

Recommended Posts

Posted

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!

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...