aspose file tools
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
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply 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
Marshal

Joined: Mar 22, 2005
Posts: 35256
    
    7
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 ]

Android appsImageJ pluginsJava web charts
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: how many ways ,we can send request to server
 
Similar Threads
HEAD, PUT, DELETE HTTP methods
reading from TCP socket problem
can I read data from a USB port with j2me??
strange results
Need Help