I want to upload a file to a server, for which I am writing a servlet program.The location of the directory where the document would be uploaded should be fetched from a paramater in web.xml. I have not use web.xml before and only know that it makes entries for each servlet. I am not able to see this file in my web application project that i am making in netbeans. Please help me with this.
Why do we fall? So that we can learn to pick ourselves up.
It's located in the WEB-INF folder under the "Web Pages" level. If you don't have that folder, then you picked the wrong project type when you created the project. Make sure you choose New Project - Java Web - Web Application.
"The good news about computers is that they do what you tell them to do. The bad news is that they do what you tell them to do." -- Ted Nelson
I am using the right project but i think my project directly makes an entry for each new servlet in deloyment descripter so i havnt opened web.xml manually but now i need it but cannot ind it in WEB-INF.