Many images are going to be uploaded by users.
- Where should such a folder be kept.
- How will I access the images in my web application.
- Should the folder be in webcontent/resources ?
Update after looking around:
- Decided to create an upload folder outside the webapp Java EE - Best way to get real path to uploaded files?
While uploading
File file = new File("Path to external folder"+filename);
To access uploaded images: created a mapping to external folder in servlet-context.xml
< mvc:resources mapping="/images/**" location="file:///D:/rahul/eclipse_java/images/"/>
Now localhost/application/images maps to D:/folder/images
Should try using SpEL and config properties to separate out the paths to a properties file.