hi, Can anyone show a sample code how to upload a file to a server using servlets. I don't what any third party tool. I am making a servlet which will get from the user the path of the file ,then i have to upload it. I want the complete code or example how it can be done.
posted 13 years ago
You don't need any thrid party packages. If you have JavaMail in your classpath, then you could use it's methods to parse the multipart request. Here is demonstration JSP. Please share your final code with us.