Search code examples
cssosgiwickethttpservicestatic-content

Static content on Wicket application served from OSGi HTTP Service


I'm developing a web application that is going to be served from an OSGi HTTP service, I register it using a WicketServlet, and I don't know how to serve static files (CSS, JS, images and so).

How could I mount a directory as a resource with the static content?

Or should I configure the resource locator in some way?


Solution

  • Files in top-level directory are served by default.