B4J Question jServer include HTML/CSS as assets

wl

Well-Known Member
Licensed User
Longtime User
Hi,

I'm creating an application using jServer. Is there a way to include the HTML, CSS, JS files as assets/resources to the project so these are included within the JAR file ?
Of course I can create code and have all this code put in a string, but this is cumbersome ...

Thanks
 

wl

Well-Known Member
Licensed User
Longtime User
I'll answer my own question because I found it...
Add the file(s) to the "Files manager" tab (if you can't see it: click "Windows |File tab"
reference the file through the filename in the folder File.DirAssets.
 
Upvote 0
Top