Copying a file from one directory to another directory

Hi,

Is it possible to copy a file from one directory to another directory on client machine using Servlets?

Lets say I had a JSP which will have two file buttons I can specify source and destination directory in my client machine.I want to copy the file from one directory to another at client side(not server side which will be done easily using File Upload option).

Can we achieve the above functionality using Servlets or any web component?

Thanks,

Venu.

[495 byte] By [venusakamuria] at [2007-11-27 6:20:36]
# 1
Use FileInputStream, FileOutputStream, File classes and mkdirs method
vinay07a at 2007-7-12 17:35:57 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2

you both need to research a little bit more into client/server web architecture. the server has *no* way of doing *anything* on the client machine. Think of the possibilties if this were possible! You go to a website and it starts to erase all files on your harddrive... Or it reads your contactbook so you and all your friends can receive some nice spam messages.

Please, we already have internet explorer to cope with, do not go wishing for these sorts of horrible nightmares.

gimbal2a at 2007-7-12 17:35:57 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
Hi Vinay,I dont want to copy files at server side rather I want to move files from one directory to another at client side by controlling thru servlet or any webcomponent.
venusakamuria at 2007-7-12 17:35:57 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
You certainly cannot change the client's filesystem from the server (thank god).You may decide to design a signed applet.
BalusCa at 2007-7-12 17:35:57 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...