Reputation: 471
After uploading the image over a JSP using Eclipse, I can not get the changes in webContent Folder. For there changes I have to refresh the webContent. How do I refresh the file system or how to display image after uploading?
Upvotes: 2
Views: 1532
Reputation: 52185
You could use a WatchService
A watch service that watches registered objects for changes and events. For example a file manager may use a watch service to monitor a directory for changes so that it can update its display of the list of files when files are created or deleted.
As per this Oracle tutorial.
Upvotes: 2