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
Post a Comment