Updated 2014-08-22 10:52:29 by achisholm

MainSource Code Downloads API Documentation Mailing ListsBugs Developers

init.tcl edit

Save this example to the tcl library as specified in your tcl library configuration. From the example configuration given this would be:
ns_register_proc GET /index.html hello

proc hello {} {
   set set_id [ns_conn form]
   set param_value [ns_set get $set_id foo]

   ns_return 200 text/html "Hello World. Value $param_value"

Example Usage


 Hello World. Value <value>