[OGo-Developer] noob question on building sope-appserver/samples/HelloForm
Chad Leigh
developer@opengroupware.org
Fri, 17 Nov 2006 23:42:14 -0700
On Nov 17, 2006, at 11:22 PM, Chad Leigh wrote:
> So all is well so far. This is on OS X 10.4.8
>
> One quick question. I know a readme says I should always go
> through apache and the adapter, but for testing I am direct
> connecting on my Mac as I don't have apache set up. I am running
> HelloForm sample and I run it at the commandline so
>
> % ./HelloForm
>
> It says it is listening on port 20000 so I do http://localhost:20000
>
> and up comes a form with an input box and an OK button.
>
> I type in something and hit ok. It appears by looking in the
> Main.m file for the Main.wo component that it should print
>
> duration: x.nnn
>
> in my browser as part of the appendToResponse call
>
> But that is going to my shell instead. Is that right or am I doing
> something wrong?
It has been 7 or 8 years since I last did WO 4.5, and I am fishing
out some books I have to refresh myself. (Having done Openstep/
OPENSTEP Enterprise and Cocoa since) However, some various CGI stuff
I had to do had a similar (not same, just generally similar) thing to
appendToResponse where, after the CGI code spit out the right
headers, you have to send to stdout the HTML etc to return to the
browser. I know that the components take care of most of that, but I
would have thought from my lack of memory that appendToResponse:
would do something similar, taking stdout and appending it to the
stuff being sent back to the browser. However, based on my
experience above, this is not the case.
I assume this is RTFM and I need to go find my FM this weekend...
Thanks for any comments though
Chad