hello to all , please help me in creating directories using
servlet outside the web app . creating directories inside the web app is not a good idea as recommended by many . whenever the application is clean and build again , the directories and files inside it gets deleted (which is not safe) . So i would like to know how can we do it outside the application. I have done it inside the web application for which the code is shown below. The code below is a servlet which gets executed when a link is clicked ( this link is a user account confirmation link ) . when the user clicks the link , the below servlet runs , and when this servlet runs the account of that user is activated. A folder gets created for every user on successful activation of their accounts .
This particular code ....
creates a directory inside the web app with the username as the directory name.. I want to do this , but somewhere outside the web app. Please show me what should i do .