Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Moving resources under WEB-INF

 
Ronen Malka
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a web application that contains hundreds of html, js and image files. These files are located under the root directory:



These folders contain some subfolders.

From a security reason I need to move all these resources under the WEB-INF folder so they will not be directly accessible.

Currently JSP and servlet files are already under the WEB-INF folder.

What is the easiest method for me to safely move all html/js/images folders under the WEB-INF without breaking all links/forwarding to resources in these folders and make sure these resources are not directly accessible?

I am using Websphere and weblogic servers.
 
prasad guna
Ranch Hand
Posts: 46
Java MySQL Database Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ronan
while web page is loading Images,js and css files are getting downloaded to the browser .so if you restrict or providing the security to those files your web page will load without images,js and CSS. we cannot hide those from the server.



 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64851
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Resources that must be loaded by the browser such as images, stylesheets and script files cannot be hidden under WEB-INF.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic