How to force to text (.txt) file to download instead of opening into browser window.
This is simple html link out.print("<a href =http://localhost//output/Output.txt">");
How to force to text (.txt) file to download instead of opening into browser window.
This is simple html link out.print("<a href =http://localhost//output/Output.txt">");
Your server needs to add a header to the response:
Content-disposition: attachment