So the file is on the web server, but you want to edit it on the client, and then save it back to the server? Either provide a liink on the web site where the user can download the file, and an HTTP upload after she's done editing, or look into hosting the file in a WebDAV repository on your server. Some
servlet containers (like
Tomcat) even have a WebDAV capability built in, or easily enabled.