How to access files in web-inf
Learn more. Ask Question. Asked 7 years, 6 months ago. Active 6 years, 9 months ago. Viewed 4k times. Improve this question. Use servletContext. Read more That is it should open my index. Is there some easy way to do this, like maybe changing some server config or web config for this? I'd prefer not to do something that requires me to modify many jsp's and htmls. Java Cowboy. I like No, the container will not automatically find out where they are.
Hemant Agarwal. You can also map your jsp files in web. Vishnu Prakash. Consider you have a web-application where one jsp MyJsp.
How the webcontainer does it. Forum: Servlets. Gaurav Kushwaha. Optional 'thank-you' note:. I wanted to know how is it done by the container, to not allow to access files under Web-INF folder? I like Web container will not serve the content of this directory. How web container does this is upto web container, and that shouldn't matter.. Collectives on Stack Overflow. Learn more. Ask Question. Asked 9 years, 8 months ago. Active 7 years, 5 months ago. Viewed 23k times. Currently it's an STS project with Tomcat server.
Improve this question. Boris Treukhov. Boris Treukhov Boris Treukhov Add a comment. Active Oldest Votes. Improve this answer.
0コメント