• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to request send to server or not

 
Ranch Hand
Posts: 293
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am sending reques to server. how i know whether supervisor received my request or not.
 
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What request? What supervisor..?
 
Rajendra Prakash
Ranch Hand
Posts: 293
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Rajendra Prakash
Ranch Hand
Posts: 293
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
(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
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic