When trying to make a simple webservlet a stumble upon this problem: if I use a name that includes /../ it won't find the resource.
This is what I have that WORKS:
Controller.java
@WebServlet(urlPatterns = {"/Controller"})
public class Controller extends HttpServlet{ ... }
And the JSP-page:
<form action="Controller">
...
</form>
However, what I try to do specify the name as a folder, to work more structured. This is the code I struggle with and that DOESN'T work:
@WebServlet(urlPatterns = {"/servletController/Controller"})
public class Controller extends HttpServlet{ ... }
JSP-page:
<form action="/servletController/Controller">
...
</form>
And I tried numerous variations. So my question, how to properly use a folder-structure with the urlPatters-annotation, or is it just not possible?