Good day.
I have a Vaadin 7 started on Jetty embedded. It works good.
Now i need to load some static content from folder (HTML,JS) inside JAR.
How can i do it?
Already works code with only Vaadin:
Server server = new Server();
/**
* ServletContextHandler
*/
ServletContextHandler servletContextHandler = new ServletContextHandler(ServletContextHandler.SESSIONS);
servletContextHandler.setContextPath("/");
/**
* ContextHandler for Vaadin
*/
ServletHolder servletHolderVaadin = new ServletHolder(new VaadinServlet());
servletContextHandler.addServlet(servletHolderVaadin, "/*");
servletContextHandler.setInitParameter("ui", VaadinUI.class.getCanonicalName());
server.setHandler(servletContextHandler);