jQuery in Action, 3rd edition
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 Introducing JavaFX 8 Programming this week in the JavaFX 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: 42958
    
  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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how many ways ,we can send request to server
 
jQuery in Action, 3rd edition