This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes How to request send to server or not Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to request send to server or not" Watch "How to request send to server or not" New topic
Author

How to request send to server or not

Rajendra Prakash
Ranch Hand

Joined: Sep 10, 2009
Posts: 293
I am sending reques to server. how i know whether supervisor received my request or not.
Lorand Komaromi
Ranch Hand

Joined: Oct 08, 2009
Posts: 276
What request? What supervisor..?


OCJP 6 (93%)
Rajendra Prakash
Ranch Hand

Joined: Sep 10, 2009
Posts: 293
Am sending request to server(weblogic). Can i know whether the request sent to server or not. I mean is it possible for any
acknowledement from server.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41137
    
  45
How are you sending this request - using HTTP through an URLConnection or a library like HttpClient? If so, then HTTP provides a response that you can check. If you meant something else then please TellTheDetails.


Ping & DNS - my free Android networking tools app
Rajendra Prakash
Ranch Hand

Joined: Sep 10, 2009
Posts: 293
(my interviewer asked simply " how you know your reques sent to server or not)

Just consider mvc-2 design pattern. Am sending username and password to server. If HttpRequest means how can i get HttpResponse (acknowledgement )
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41137
    
  45
HTTP is a request/response protocol - if a request is sent, then a response is returned, provided that the request reached the server. Whatever HTTP library you're using will tell you one way or the other.

I don't understand what MVC or username/password have to do with this.

HttpServletRequest and HttpServletResponse are Java classes that are server-side abstractions of HTTP concepts; I sure hope that's not what the interviewer was after.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to request send to server or not
 
Similar Threads
XML over HTTP / JMS
Using Put request
how many ways ,we can send request to server
Request Dispatcher Question
Client Remote Notification