Now my question is how to i create the folders to upload the html file to the address http://www.doubleZ.com/roll/wt.html when the space that i have is just assigned with this address http://www.doubleZ.com, so basically what i need is a way to create the folder named roll by using Java from the client side before i can upload the html file.
P.S. If you need to be able to detect where your app is located on the server's file system, check out the ServletContext.getRealPath() method (which works fine unless you are running the app out of an unexpanded war file).
Joined: Jan 07, 2005
Originally posted by Bear Bibeault: As such, creating a file or folder on the server file system is a simple matter of Java file I/O for any area in which you have appropriate permissions.
For me assume that i have a html file on my disk called wt.html, now what i am trying to do is create a HTTP uploader so that i can upload my wt.html file to the location at address http://www.doubleZ.com/roll/wt.html
No before i can upload to that location i need to create the directory roll on the server because all i have is this address http://www.doubleZ.com
Basically my question is that once i have authenticated myself into this address http://www.doubleZ.com how do i create the directory roll and create the file called wt.html on the server all from my side.
Originally posted by Richard West: how do i create the directory roll and create the file called wt.html on the server all from my side.
What is "my side"? I'll assume you mean the client.