AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Make a directory on the remote server on a username who logg

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Help
View previous topic :: View next topic  
Author Message
kaytown
Guest





PostPosted: Wed Feb 25, 2004 4:04 pm    Post subject: Make a directory on the remote server on a username who logg Reply with quote



Hello,
How can I create a dirctory for an user based on the user who is authenticated at the client?Here goes some detail explanation about what am doing exactly.
At first, the user enters a username and password and if they are are correct to the values against to the stored one's in the table, he is authenticated.Once, the user is authenticated, I show a different pannel.Now, the user can send some files to a server.As of now, I'be hardcoded the directory name on my server program, so what ever files I upload from the client its stored in that directory.NOw, I'd like to do is, say user1 has logged in, when this user tries to send files to a server, at first a directory has to be created on this user name and then inside this user directory, a sub-directoryhas to be created.This sub-directory has to be with a random name and then all the files that are sent from the clients will be stored in the sub-directory.
I've only problem with the directory creation and am bit successful with file transfer.I'm not using the sun ftp package for file transfer, am doing with sockets.
Any help would be highly appreciable.

Thanks for your time


Back to top
Andrew Thompson
Guest





PostPosted: Wed Feb 25, 2004 4:34 pm    Post subject: Re: Make a directory on the remote server on a username who Reply with quote



"kaytown" ...

Quote:
How can I create a dirctory for an user based on the user who is
authenticated at the client?Here goes some detail explanation about what am

doing exactly.

Detailed but rambling..

Can you write a file on the server now?

If you _can_, you should be able to
make a directory using File.mkDir()..

There _may_ be some arcane server/client
interaction going on here that prevents this,
I have not tried it..

--
Andrew Thompson
* http://www.PhySci.org/ Open-source software suite
* http://www.PhySci.org/codes/ Web & IT Help
* http://www.1point1C.org/ Science & Technology



Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java Help All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.