How to store files in client machine?
问题 File dir = new File(System.getProperty("user.home")+"\\Desktop\\" + svc); dir.mkdir(); File f; f = new File(System.getProperty("user.home")+"\\Desktop\\" + svc + "\\" + logFile + "_" + System.currentTimeMillis() + ".txt"); I am using this code to store the files in the user(client) machine.But it is storing the files in the server machine.Can anyone help me on this? I have deployed my war file in unix server. 回答1: Saving a file on a client machine from software running on a server is not as