eXept Software AG Logo

Smalltalk/X Webserver

Smalltalk Dynamic Web Pages - Source of WebDemoApp1-timeNow:

Home

Documentation
www.exept.de
Everywhere
for:
timeNow:aRequest
    "a very simple reply: shows the current time.

     Invoke via the browser as URL:
        host:port/<N>,timeNow:
     where <N> is the registered name of this service.
    "

    |replyPresenter|

    replyPresenter := aRequest replyPresenter.
    replyPresenter title:'Server Time Example'.
    replyPresenter parametersAt:#secondHeadLine put:'TimeNow: Server Time Example'.
    aRequest
        nextPutLine:'<h1>Server Time Example</h1>';
        nextPutLine:'The servers time is ' , Time now printString.

    self addLinksForSource:#'timeNow:' previous:#'testGoogle:' next:nil to:aRequest.

Edit (disabled)
Index


ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 27 Jul 2024 02:51:03 GMT