Search code examples
javaeclipsejsptomcatweb-inf

Can't access to WEB-INF/folder/folder/file.jsp


I'm developing a little servlet with eclipse on a Tomcat server.

From this servlet I want to include some jsp files, it works perfectly for the file

WEB-INF/website/NewFile.jsp

But when I try to get a jsp file in

/WEB-INF/website/common

I get the 404 not found exception.
I've some other files in the "common" folder and I can get access to them.
So I guess that eclipse doesn't find the jsp in this folder when it comes to compile them.
I suppose that I have to somehow change the "jsp searching path" of the eclipse project but I don't know how to do


Solution

  • Try

    /yourapp/WEB-INF/classes/META-INF/resources/website/common/newfile.jsp
    

    for

    http://localhost:8080/yourapp/website/common/newfile.jsp
    

    Often other WEB-INF folders are not available.