B4J Question [b4j] How to export html to client

jinyistudio

Well-Known Member
Licensed User
Longtime User
Hi

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 ! :)
 
Last edited:

jinyistudio

Well-Known Member
Licensed User
Longtime User
Hi

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) ?
 
Upvote 0

billzhan

Active Member
Licensed User
Longtime User
If report.html is generated (once / periodically) and put at /www/report, it could be served automatically. No need to use addHandler, Url : ip:port/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 : ip:port/your/url/path.html
 
Upvote 0
Top