I have a Java Dynamic Web Project, and I\'m using TomCat v7.0.
I am new to web projects and I didn\'t quite understand how I can upload a file in one of my jsp pages
Not providing the file path is a security feature of the browser.
You have the file contents available in your code (InputStream filecontent) so you could use that or use one of the convenience methods on FileItem, e.g.
InputStream filecontent
FileItem
item.write(new File("/path/to/myfile.txt"));