I would like to deliver the webpage inside the jar.However I don't know how to get that working. I have it working for external files but can't seem to get it working for files inside the jar.Nothing more than one simple index.htmlCan someone explain how to make Webbit serve a page from inside a jar?
--
You received this message because you are subscribed to the Google Groups "Webbit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webbit+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
this.webServer = WebServers.createWebServer(port)
.add("/gui", wsh)
.add(new StaticFileHandler("gui")
);
My jar file layout looks like:
gui/index.html
META-INF
com/test/websocket/WebSocketServer.class
com/test/websocket/gui/WebSocketHandler.class
Is it possible to serve the index file in the gui folder from inside the jar. Or should index.html be placed differently ..
Tried this :
.add(new EmbeddedResourceHandler("/gui/index.html")
but that seems incorrect.
Any help is appreciated.