I want to create a directory(in tomcat) inside my current webapplication i.e DemoDirApp. This is the code of the servlet. This servlet code creates the directory in C:\ where the tomcat is installed
Need your help
Arpit U. Gadle
Joined: Feb 23, 2009
Uhm, what exactly is your problem ? Do exceptions occus ?
JDBCSupport - An easy to use, light-weight JDBC framework -
Author and all-around good cowpoke
Joined: Mar 22, 2000
If you expected that directory to be relative to your application, you have the wrong idea.
The class java.io.File deals with operating system directories, to get the translation from application relative to operating system, look into the ServletContext getRealPath() documentation.