Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

Uploading

Thread view: 
freesoft_2000 - 27 Jul 2006 17:19 GMT
Hi everyone,

                  I have a rather confusing question but please bear with
me for a while.

                  You see i am trying to upload a file to a certain
website called http://www.doubleZ.com.

I am using java's HttpUrlConnection class. Connecting to the website is
okay and i am also getting its outputstream so i can upload the html page
to the above site.

The thing is that the html page that i want to upload must be placed at
this address http://www.doubleZ.com/roll/wt.html

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.

I hope i have not confused anyone

Any help is greatly appreciated

Thank You

Yours Sincerely

Richard West
rhino_redux@yahoo.ca - 27 Jul 2006 19:39 GMT
> Hi everyone,
>
[quoted text clipped - 21 lines]
>
> Any help is greatly appreciated

It would really help to know if you are writing an application, applet,
or servlet. I really can't tell from your description of your
requirements. I would probably write the code differently depending on
your answer. If you are writing an applet, you might not be able to do
the upload at all, unless perhaps you were willing to get a signed
certificate for the applet.

--
Rhino
Moiristo - 28 Jul 2006 01:28 GMT
> It would really help to know if you are writing an application, applet,
> or servlet. I really can't tell from your description of your
> requirements. I would probably write the code differently depending on
> your answer. If you are writing an applet, you might not be able to do
> the upload at all, unless perhaps you were willing to get a signed
> certificate for the applet.

I signed my own certificate :D
cp - 27 Jul 2006 19:40 GMT
Have you tried using the mkdir() method in the File class?
freesoft_2000 - 30 Jul 2006 19:31 GMT
Hi everyone,

Lets 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

Now before i can upload to that location i need to create the directory
named 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 named roll
and create the file called wt.html on the server all from my side.

Is there a way this can be achieved?

Yours Sincerely

Richard West


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.