Question

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?

Was it helpful?

Solution

Files in top-level directory are served by default.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top