Hi,
I have a doPost method in a servlet. I would like at the end of the method to return a Text file from the hard drive of the server to the user so he can save it.
The text I would like to return is treated in the code as a long string - so if you can tell me how to deliver it to the user as a text file without writing the string to the hard drive of the server, that would be even better.
I presume I want a open | save | cancel, dialog box to appear on the web page.
Thanks,
Jonathan
I have a doPost method in a servlet. I would like at the end of the method to return a Text file from the hard drive of the server to the user so he can save it.
The text I would like to return is treated in the code as a long string - so if you can tell me how to deliver it to the user as a text file without writing the string to the hard drive of the server, that would be even better.
I presume I want a open | save | cancel, dialog box to appear on the web page.
Thanks,
Jonathan