I have a servlet which acts as a front controller.
@WebServlet(\"/*\")
However, this also handles CSS and image files. How can I prevent th
I know this is an old question and I guess @BalusC 's answer probably works fine. But I couldn't modify the URL for the JSF app am working on, so I simply just check for the path and return if it is to static resources:
String path = request.getRequestURI().substring(request.getContextPath().length());
if (path.contains("/resources/")) {
return;
}
This works fine for me.