This week's giveaway is in the Java/Jakarta EE forum. We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line! See I have some information displayed on a JSP which I want to save to a simple text file. On selecting a button I want it bring up the "save as" dialog where the user can decide where to save the file to on their local machine. I can create the file and put data into it in Java, but I can't work out how to bring up the save as dialog from the JSP. Any help much appreciated! Also any good resources for this sort of thing would also be appreciated.
Bear thanks for your response. I had finally worked it out using the method you suggest - although I'm requesting the info from another JSP. How would I reference a servlet directly? Thanks for your response though, it doesn't seem to be documented anywhere that this is the way to do it.. altohugh more likely I was searching in the wrong place!