I'm using gretty and running app with tomcat.
My only servlet is:
@WebServlet(name = "frontServlet", urlPatterns = arrayOf("/"))
class FrontServlet : HttpServlet() {
override fun doGet(req: HttpServletRequest, resp: HttpServletResponse) {
Router.doGet(req, resp)
}
...
}
My static assets are under WebContent/public
BUT any request including with paths to assets is handled by FrontServlet.
Default static serving works if I set FronServlet's url pattern to specific one (but I need it to catch all requests except for requests to static files).
What should I do and is there any way to invoke server's default static file handlers from my custom servlets?