Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Question about put jsp files under web-inf folder

832931Jan 20 2011 — edited Jan 21 2011
In 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 18 2011
Added on Jan 20 2011
2 comments
191 views