Is there any way with which I can capture generated dynamic content on the server side and get that file or string object of the same to the servlet.
We can generate
You need to have access to appropriate servlets at the server side or you can write your servlet.
Here is a small tutorial on using servlets.