Home > Archive > dBASE Web Applications > October 2006 > StdIn/StdOut









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author StdIn/StdOut
Christopher F. Neumann

2006-10-25, 7:25 am

I need to be able to receive a parameter to my applet and return a value to
the requestor. I believe that this is using StdIn/StdOut. Is there a
primer that will basically show how it works with examples?

The requestor is going to query my applet and I will return a number. Based
on that number they are going to query my applet again to stream an image.





--


Christopher F. Neumann

[dBASE Gold Charter Member 107]
Blue Star Visual dBASE graduate
IWA-HWG Web Technologies Certified
IWA-HWG Web Programming Certified
ICCP TCP/IP Network Analyst
Data Communications Engineer
http://cfneumann.us

"Just hanging out on the Sagittarian arm of the Milky Way"


Claus Mygind

2006-10-25, 7:25 am

You can read up on web apps and connections at Michael N's website
http://econ2.potsdam.edu/dLearn/WEB/

This is straight out of WebClass.cc (see below)

If you add WebClass.cc to your app it creates the oCGI array. Then you can
just test for the incomming value and store it in a local variable for your
app to use

if you are sending the parameter with out a name
Param cParam1

if you are sending the parameter value as part of a name/value pair
oCgi.isKey('<your parameter name>') // tests for parameter
cSearch = oCGI['<your parameter name>'] //copy the value of the parameter

Class CGISession of assocArray
////// Constructor code

this.nTimeout = 45 // STDIN read timeout in seconds #####

////// Set dBASE environment commands. Web apps are non-GUI

SET CENTURY ON
SET TALK OFF




////// Method: Connect
//////////////////////////////////////////////////
////// Purpose Connects by StdIn and StdOut to Web server
///////////////
////// reads in data, and then parses out name/value pairs
//////
////// and creates a new element of this array for each.
////////

Function Connect

// Set default WebMaster EMail address

this["WebMasterEMail"] = "Claus Mygind"

// Read incoming data into this array as name/value pairs
// Ex: this["City] = "Vestal", where "City" is the name
// and "Vestal" is the value

this.loadArrayFromCGI()

////// Open output stream back to Web Server
Try

this.fOut = new file()
this.fOut.Open("StdOut", "RA") // open the StdOut output stream

Catch (exception e)

Quit // Might as well quit, can't send response

endTry





"Christopher F. Neumann" <chris@cfneumann.us> wrote in message
news:c8$dbLT8GHA.1472@news-server...
>I need to be able to receive a parameter to my applet and return a value to
>the requestor. I believe that this is using StdIn/StdOut. Is there a
>primer that will basically show how it works with examples?
>
> The requestor is going to query my applet and I will return a number.
> Based on that number they are going to query my applet again to stream an
> image.
>
>
>
>
>
> --
>
>
> Christopher F. Neumann
>
> [dBASE Gold Charter Member 107]
> Blue Star Visual dBASE graduate
> IWA-HWG Web Technologies Certified
> IWA-HWG Web Programming Certified
> ICCP TCP/IP Network Analyst
> Data Communications Engineer
> http://cfneumann.us
>
> "Just hanging out on the Sagittarian arm of the Milky Way"
>
>



Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com