How to put file in my project folder

First I want to create a folder in my project directory outside the tomcat folder and then i want to put file in created directory

If you mean uploading a file by a user, look at the example here. Get the file using FileUploadingAPI and copy it to a desired directory in your server file system.