Hi,
I am trying to build a web application from where file can be uploaded to the server.
the html page looks like as follows:-
The web.xml file looks like:-
I am usging
tomcat 6.
I have written a FileUploaderServlet that writes the file to the server's local directory.
The FileUploaderServlet looks as follows:-
Everything works fine and I am even able to get the file on server. But once the doPost() method of the
servlet completes, it gives me
HTTP Status 405 - HTTP method POST is not supported by this URL.
Any idea where things are going wrong?