• 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
Re: post http problem in cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: post http problem in cocoa


  • Subject: Re: post http problem in cocoa
  • From: Claudio Procida <email@hidden>
  • Date: Sat, 02 Sep 2006 19:28:21 +0200

Athahar ha scritto:
Hi i'm trying to build a simple addition tool, taking two numbers from the
user input in Cocoa, and processing in a server via HTTP post method.
in the server i've a java program to accept the variables from the cocoa
appln.
but my java program is not able to receive the variables.
what could be the problem with my code.
[snip]
   tempinputs = [NSString stringWithCString:"input_1="];
   inputs = [tempinputs stringByAppendingFormat:@"%@ &input_2=%@",
number1,number2];

I didn't investigate your code any further, but it seems that there's an extra space between the first string placeholder %@ and the ampersand & Did you read the logs of your Tomcat/whatever servlet container?

Claudio

--
http://www.emeraldion.it

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


References: 
 >post http problem in cocoa (From: Athahar <email@hidden>)

  • Prev by Date: CoreData and undo/redo
  • Next by Date: Re: NSSlider did finish sliding
  • Previous by thread: post http problem in cocoa
  • Next by thread: Object Layering is Changing When Calling -addSubview:
  • Index(es):
    • Date
    • Thread