Jump to content

Only Static Jsp Include File!


ragnetto

Recommended Posts

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!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...