Remember that all the requests will be redirected to your WikiApplication . Later in this section it will
be explained how to instruct the web server to redirect all the page calls to the same execution unit. The
neko.Web.getUri() method returns a relative path to the current page, so that if the invoked URI is
http://localhost:2000/mydirectory/mypage?param=value
the value returned will be
/mydirectory/mypage
If the address is the web server base address http://localhost:2000/ the returned value will be a
simple slash symbol / .
Other information required by the application is the directory where the actual contents will be saved.
Right now the path is relative to the current working directory, but you can easily change it to fit your
needs, maybe loading this value from a configuration file.
Finally, the application must be aware of every parameter that is associated to the request done to the
web server. The neko.Web.getParams() returns a hash table containing all the GET and POST variables.
The parameters needed to process the request are the kind of action to perform (view, edit, or save) and
the content to save in case the action is ??? save ??? .
Pages:
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477