I have a web application containing hundreds of HTML, JavaScript and image files. These files are located in the root directory:
my_root-- -- html -- js -- images
These folders contain some subfolders.
For security reasons, I need to move all these resources to the WEB-INF folder so that they are not directly accessible.
Currently, the JSP and servlet files are already in the WEB-INF folder.
What is the easiest way for me to safely move all HTML / JavaScript / images folders to WEB-INF without breaking all links / redirecting to resources in these folders and making sure that these resources are not directly accessible?
I use WebSphere and WebLogic servers.
html/js/images WEB-INF / , ?
. HTML/JS/image ( CSS) , . JSP , , , (, ). JSP , , , (JSP "", - ). /WEB-INF, , . , MVC- MVC- ( , / , , ..) .
/WEB-INF
( , " " ), , , /. , , homegrow a Filter .
Filter
, ++, findAndReplace. Eclipse , .
, . , , , -