little like ABMaterial ! I don't want(need) edit html page for client. I want export HTML to index.html first in server. server will send this index.html to client when client connect 192.168.1.168:8001. Please tell hoe to implement this !
Sub Handle(req As ServletRequest, resp As ServletResponse)
Dim page As StringBuilder
page.Initialize
page.Append($"
<html>
<body>
<b>Hello World</b>
</body>
</html>
"$)
resp.ContentType = "text/html"
resp.Write(page.ToString)
End Sub
This is my one example about addhandler : srvr.AddHandler("/report/reporttable", "ReportHelper", False)
Now, I will a Html name as report.html and put at /www/report.
Which url do i key into browser ? 192.168.1.168:8001/report/report.html ?
And, How to coding the path of addhandler(?,"reportHelper,False) ?
If report.html is generated (once / periodically) and put at /www/report, it could be served automatically. No need to use addHandler, Url : iport/report/report.html
If the content is generated on each hit of url, the url should be match the path in addhandler(path,"reportHelper,False). path : /your/url/path.html Url : iport/your/url/path.html