This week's book giveaway is in the OCAJP forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line!
See this thread for details.
The moose likes Servlets and the fly likes how many ways ,we can send request to server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide 1Z0-808 this week in the OCAJP forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "how many ways ,we can send request to server" Watch "how many ways ,we can send request to server" New topic
Author

how many ways ,we can send request to server

ramchander yshetti
Ranch Hand

Joined: Apr 22, 2006
Posts: 97
hai,
i request you to give answers to the questions.


->if we use doGet(...) how the request to sended to server

->if we use doPost(...) how the request to sended ..

->if we use service(...) how the request to sended ..

->can we see how the request is transfered to server..

bye
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42952
    
  73
You have it the wrong way around: If a request is a GET, then doGet is invoked, and if it is a POST, then doPost is invoked. The service method contains the code to differentiate between the two, and dispatch a request to the appropriate doXXX method.

If you use Firefox, check out the excellent LiveHTTPHeaders extension. It lets you view in detail what is sent to the server, and what is received back, including parameters, error codes, etc.

By the way, why are you sticking your tongue out at us?
[ July 06, 2006: Message edited by: Ulf Dittmer ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how many ways ,we can send request to server