I have the servlet annotation as:
@WebServlet (name="PageServlet", urlPatterns={"*.zt"})
zt is the file extension I am using.
However if I use
@WebServlet (name="PageServlet", urlPatterns={"/*.zt"})
It does not match the URL such as /app/index.zt , nor /app/foo/test.zt... How can I match only the zt files under root /app/?