I am trying to create an RSS feed dynamically and store it on server, such that to access the created RSS feed I can just type in the URL from the browser. Is it possible to do so?
I can create the RSS feed, but when I try to save it on server using FileOutputStream("WebContent/filename.xml")
it gives me FileNotFoundException
. Is my approach correct, or is there any other way to store a file on the server and access it using a simple URL?
I am using spring schedulers to run my application every minute to create the RSS feed dynamically.