Jan 2nd, 2013, 07:20 AM
Viewing images not within webapp
I am very new to Spring. I am starting a web MVC project to display video shots as thumbnails.
These are all stored within a repository, not within the webapp domain, eg on the filesystem /repo/thumbnails/.....
I would like a user to be able to stipulate where the repo path is, via a form, and then use that path to retrieve the images.
I have tried using the <mvc:resources> tag in the config, but I still am unable to get to any external file.
Do I need to setup the classpath to include this directory. If so how do I enable this to be programatically changed?
There must be an easy way to do this, I just can't get it to work.
Can someone please give me a simple example please.