This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
hi the service method overrides to give us the methods such as doGet,doPost,doDelete,doPut,doTrace etc. i know the function of the doGet and doPOst,can any one of u let me know the functions of the other fucntions(doPut,,,) i know that this is quite easy , Dean Jones
Hi! The doPut(),doPost(),doGet(),doDelete() and doTrace() methods are present to enable custom handling in the way in which a form or a request may be posted to the Webserver ( servlet Engine ) As we know we have always used the doPost and doGet methods in the servlets.. or the service() sometime.. It is nessasary that.. when a form is being submitted.. say thru' form method="post" the doGet() method is not invoked.. since it has no business to be invoked.. but doPOst() is.. A http Get request is the first request to a IP for which the default page is displayed. most times there is no form/information being submitted for this request. On a info submission we will use form method=post and the handler on the servlet for the same is the doPost() Sometimes it is easy to upload text/binary files to the server using the form method=put.. and yeah you guessed it right.. the handler wud be doPut().. and so on.. if you look up the HTTP protocols you will get a better insight, I hope this helps., Lupo