Is there a way to refresh a folder or the whole project using Java/Spring. When i do a file upload and want to display the tree list, the file gets uploaded and when i try to display it, the file isn't displaying. But once i refresh the folder manually its just displaying. Please help me guys.
Never try to be a hard-worker. Be a smart-worker.
Where's the tree list/folder/project you want to refresh?
Are you talking about the operating system file explorer? your IDE? an application you've developed?
I assume you're talking about the operating system file explorer - there probably isn't a way to do this through Java... the actual file/directory is being created, it's just the file explorer view that's not updating to show it.
There's no way to "refresh" the file system... this is just an artifact of windows explorer. Either a file exists or it doesn't, it's not like you upload/copy/create a file and it doesn't exist until you refresh the directory. How is your JSP getting the file to show?
I too have the same requirement to upload a file, from which a graph will be generated(garph image will be saved in web content/image folder) and I need to display the image to user.
My problem is that for different files the graphs are generating and everything is working fine locally. But when I try using IP address, the image is not displaying (X mark displaying). When I refresh the image folder then the image is getting displayed.