Albert, This is a topic for a web programming forum, not a Tomcat forum.
In the meantime, just copy the file to your local machine, create an HTML page with a link to the file, and test your JS. If in tomcat, stick the file in the tomcat root, create an HTML page with a link to the file, and then hit tomcat to test your JS. -----Original Message----- From: albertkao [mailto:albertk...@gmail.com] Sent: Friday, February 12, 2010 8:55 AM To: users@tomcat.apache.org Subject: download a small file from tomcat server I like to download a small file (C:\dir1\data.txt) from tomcat server to my local machine which is running a Prototype javascript. How to do that? Any sample code or tutorial? -- View this message in context: http://old.nabble.com/download-a-small-file-from-tomcat-server-tp2756475 8p27564758.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org