Hi there. I use Eclipse with
Tomcat 6. I want to create a
JSP where one can upload a file and then view it as a list of files in the directory. I have managed to accomplish upload a file to a shared folder on LAN and view it as a http page. (In server.xml of Tomcat I have context folder path to that shared folder). Now I want to make it such that anyone in across globe (not only on LAN) can create a folder there.. Any suggestions ?? The code to upload goes something like this. I got it in google search. I have done some minor corrections though. I know I must have used
servlets instead. Please help.
Also, in line 25, substring is taken till '\n', but when I printed 'file' (from line 19) I could not figure out '\n' (new line) . I mean, it was like continuous chunk of information. Please tell why its used there.