Hello!
I'm trying to figure out if there is a way to hide content, for instance a html file from browser users in Tomcat.
A servlet is to check if a password is correct and if so use response.sendRedirect("example.html").
Having the example.html directly in webapps/Application folder makes it accessible to anyone by typing http://whatev.com/Application/example.html
I seem to remember that files added in WEB-INF are hidden. But then I cant seem to redirect to them.
I guess the proper way is to use a Filter, but Im really curious if it can be easily done the way I imagine. It feels that in this day of age, having content so accessible by default and make it difficult to hide, rather then the other way around, feels weird. I bet I'm missing something obvious, thus the question :)
Thanks in advance!