I have written a Java web application that copies a file from the server to the client's machine. The user should be able to open that file on the client side by a click. In my java code I use :
Runtime.getRuntime().exec("rundll32 SHELL32.DLL,ShellExec_RunDLL "+ FilePath);
Where the FilePath has the client's IP address. This command opens the file but the problem is that the file opens on the server side NOT the client. Does anyone has an idea how I can do this?
Thanks,