tomcat - 404 -resource under sub-directory not found in eclipse -


i able access resource(say test.html) when directly under webcontent in eclipse.if place in web-inf or web-inf/jsp ide shows error 404-requested resource not available.

 http://localhost:8080/myapp/test.html (this works when test.html under webcontent , not of it's subdirectory) 

when in webcontent/web-inf right click-run takes below url shows 404-resource not available

       http://localhost:8080/myapp/web-inf/test.html 

how access placing "test.html" in web-inf or web-inf/jsp?

all configurations default no restrictions specified in web.xml , using tomcat 7 web server

to prevent access specific files. cannot access /web-inf/ directory outside server itself. if want create subdirectory create them under

webapp/ -index.jsp -yoursubdirectory/ --test.jsp

test.jsp can accessed via localhost:8080/myapp/yoursubdirectory/test.jsp


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -