I just have quick question. How do I download a file from a servlet? At the moment I have a jsp page, which takes user details and calls a servlet which generates a file and saves it to disk. I now want to let the user download this file?
Hi Guy, This code 100% definitely solve your problem. This is below . import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream;