I have an application that uses Spring Framwork servlet. I do not have any MVC in my app. There are no JSPs. The client request comes in, as some form of XML message over HTTP. It's processed by the servlet and then it sends back the response over HTTP Connection object.
On the client side this comes as an event.
I need to figure out a way to create a file out of this response and then upload it to some URL.
I have done the first part i.e. creating he file from the response. But I do not know what needs to be done to upload it to URL.
I looked at URL Connection etc. But the issue is I do not have the JSP, and the MVC framework so not sure how I can upload file.