• Post Reply Bookmark Topic Watch Topic
  • New Topic

directory in servlet  RSS feed

 
Deepak Chawla
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to create a directory structure using servlet. I have a form which inputs project name and other information, i want that when user hit submit, all the information is stored in database, that storing in database is working but also at the same time i want to creat directory structure. I have common path stored in my properties file c://proejct_docs/projectname
This projectname is the name of the project which user will submit at the time of hitting submit from the form.
So i want that it should create directory folder under project_docs with the projectname which user writes in the form.
i looked in java.io about mkdir() but i didn't understand exactly.
plz help
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Making a directory is a general Java issue rather than one about servlets. You'll probably get more useful help in another forum, so I've moved this message to Java in General (intermediate) for you.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!