Smalltalk/X WebserverSmalltalk Dynamic Web Pages - Source of WebDemoApp1-timeNow: | |
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)
| |
ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Sat, 21 Dec 2024 15:43:12 GMT |