| Author |
PUT method is not working in Tomcat
|
Anant Gowerdhan
Greenhorn
Joined: Feb 16, 2003
Posts: 1
|
|
Friends, Can any one tell me how to use PUT method in Tomcat webserver. I have one HTML file where I've written a code <form method="PUT" action="servlet/PutEX"> where "PutEx" is my servlet which is has a method doPut(HttpServletRequest req, HttpServletResponse res){ } I am using this method to upload a file, but its not working Please let me inform whether this method is Server specific or I am doing something wrong.
|
 |
Peter den Haan
author
Ranch Hand
Joined: Apr 20, 2000
Posts: 3252
|
|
Anant, This is more something for the Tomcat forum. I'll move it there. In any case, this is certainly not server-specific and it should work. Unfortunately you give few details on what is (not) happening -- do you get exceptions; if yes, what's the stack trace? Doesn't the method get called? Does a GET get through to your servlet? - Peter
|
 |
Mike Curwen
Ranch Hand
Joined: Feb 20, 2001
Posts: 3695
|
|
|
File uploads are a bit more special than just regular forms. Search both the servlets and apache/tomcat forums for more information. And post back some more details. For example: Does the PUT method not get called at all, or is it the file upload that fails?
|
 |
 |
|
|
subject: PUT method is not working in Tomcat
|
|
|