Question about put jsp files under web-inf folder
832931Jan 20 2011 — edited Jan 21 2011In order to prevent direct download files from the server, I put the jsp files under the web-inf folder of the application. But I am asked to put the images, css and javascripts files under the web-inf folder also.
I do not think it will work, because those files are loaded by browsers when html file is read by browsers. The only way to prevent direct download for those files are server side authentication.
Is that right?
By the way, after I put the jsp files under the web-inf folder, I have to add web-inf on the servlet forward path, is that right?
Thanks.
Jack