Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

create a directory

Status
Not open for further replies.

lovinasd

Programmer
Jan 23, 2005
23
US
hi,
I would like t create a directory on the server in a servlet.Is it poosible to create directory on the server at a specific location.
I am new to java Could any tell me how to create directories and files using java
Thanks,
 
Thanks ,it works.Is itpossible to load a image file from client side to server.
I ahve a file type in html and when i say getparameter i get the path of the image.
Will putting this path in file objcet create the image file on server.
please let me know if it is possible to create a file on server i man image.(upload a image file)
thanks
 
What kind of server ?
What kind of client application ?

--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Hi,
It is a html form which points to a servlet on tomcat server.


In the html form i have a <input type="file" name="ftype">
when the form is submitted and when i say
String st=req.getParameter("ftype");
This give the path of the iamge on the client lcoal system.
how can iload this image to the tomcat server in a specify directory.would it be the file class or somethg else

thanks,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top