I've got Spring MVC application, and in my JSP I've got form which uploads files to my local Tomcat Server to directory "C:/apache-tomcat-7.0.56/photos".
Here is my Tomcat files structure:
C:\
apache-tomcat-7.0.56\
bin\
conf\
lib\
logs\
photos\ <-- I WANT TO READ FILES FROM THAT FOLDER
photo1.jpg
photo2.jpg
temp\
webapps\
myapp\ <-- MY SPRING APPLICATION
resources\
WEB-INF\
How to do it? I can't access them through url 'localhost:8080/photos'. What's the url path to that files? I know I can do that with absolute path to my local drive like this:
<img src='C:\apache-tomcat-7.0.56\photos\photo1.jpg' />
but I want to read it through server url.
EDIT: I can't upload files into my webapp/resources directory from which I can easily read files, but when I redeploy app, files are deleted.