• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Returning results from HTTPConnection request...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Returning results from HTTPConnection request...


  • Subject: Returning results from HTTPConnection request...
  • From: Nathan Walker <email@hidden>
  • Date: Mon, 12 Dec 2005 00:44:37 -0500

I am overlooking something it seems or maybe it's just been a long day but I'm just trying to get the response from the HTTPConnection request and return that in the current browser window. Below is the code I've tried:

String buildURL = "http://" + myApp.host() + ":" + myApp.port() + "/cgi-bin/WebObjects/BSSKIOSK.woa/wa/CashRead?wosid=" + mySess.sessionID() + 
"&completed=1&totalcash=" + pr.cashInserted;
WORequest requestFinish = new WORequest("POST",buildURL,"HTTP/1.1",null,null,null);
WOHTTPConnection connectTo = new WOHTTPConnection(myApp.host(),myApp.port().intValue());
connectTo.sendRequest(requestFinish);
WOResponse response = connectTo.readResponse();
return response;

You can see that the WOHTTPConnection is Posting to a Direct Action, I'd like to return the results from that Direct Action to the browser. This is being done is a private Thread and that's why I need to do it this way. Can I return the results into the current browser window ? It seems to of course just return the WOResponse object which doesn't generate a response in the current browser window ??

Thanks,
Nathan


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Returning results from HTTPConnection request...
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Xcode and Java Hot Swap
  • Next by Date: Don't understand mixing Static and dynamic client components
  • Previous by thread: Xcode and Java Hot Swap
  • Next by thread: Re: Returning results from HTTPConnection request...
  • Index(es):
    • Date
    • Thread