jsp - Prompt user to select the path for downloading a file java -


how should prompt user select path downloading file in java? currently, have provided default path store files. but, how should allow user select path? using jsp , servlet. once user enters data in jsp , clicks on generate report, user should prompted dialog box asking him/her choose path.

the path file downloaded job of client browser, not web application. should write content of file download httpservletresponse. make sure set content type "application/octet-stream" in order prompt user downloading file, regardless of client browser.


Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - Rendering a QGraphicsScene to QImage results in objects being placed on a side of QImage -