Download from server

Hi

I've created a project in such a way that, when a request is received with a path, the server takes the file in the path and sends back the data in DataOutputStream.

I'm sending the request using a HTML page. When I double click I'm getting a dialogue box giving open/save option.

I want to change it in such a way that by default the file gets saved in the fileName from the path.

How do I do it.. Help pls

[444 byte] By [New_Kida] at [2007-11-27 4:57:21]
# 1
If I understand the question correctly,response.setHeader("Content-Disposition","attachment; filename=\"" + DEFAULT_FILENAME+ "\"");should do it.
karma-9a at 2007-7-12 10:12:46 > top of Java-index,Java Essentials,Java Programming...