I just switch from a Websphere server to a Tomcat server. Now all my file include paths are broken. Tomcat can not find the specified paths. What's the problem?
Originally posted by Nina Anderson: I'm trying to include a file in my JSP as well as images on the page and Tomcat is still not recognizing the file paths.
You need to specify them correctly.
The following is my project hierarchy:
This was not very helpful because you did not enclose the list in CODE tags to preserve the indentation. I added them on your behalf. Please be sure to use CODE tags in the future.
-> WEBINF
WEBINF or WEB-INF? If the latter, please take more care when posting. Please read this for more information.
<jsp:include page="/common/Header.jsp" %>
common or Common? Case counts! Pick one and use it consistently. Most experienced developers will always use all lowercase.
Your common folder is under WEB-INF. Don't you think you;d need to include that as part of your path? [ December 10, 2007: Message edited by: Bear Bibeault ]
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: JSP file Include path fails with tomcat 6.0