Hi Thanks for the information,it is totally theoretical,I can very well understand the concepts,but I don't how to implement it.So I just want some example code/programs to under the implementation of the servlet methods.
Seriously thought, each gets called and responds with information to the client. In theory they could all do the same thing, but in practice only Get and Post are really used, and what they return is a matter of best practice rather than anything else.
Sun Java System Application Server Platform Edition 9.0_01
Regards, Prathana
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35240
7
posted
0
I tried the code which you have send for doTrace() I am getting the below error in browser,can you please help me
HTTP Status 405 - HTTP method GET is not supported by this URL
If the servlet only implements doTrace then it can only be accessed using the HTTP TRACE method. That means you can't use an HTML link (which uses GET), and HTML form (which uses GET or POST) or type the address into the browser manually (which would use GET). You'll need to use an HTTP client library like Apache Commons HttpClient, or write some JavaScript code using XmlHttpRequest (which can generate all HTTP methods).