I try to realize the following scheme:
1. From url “http://localhost:8080/newsPage?role=manager” or “http://localhost:8080/newsPage?role=spec” I send the request to Servlet “/newsPage”. Interaction between client and servlet is serviced through Jsp “newPage.jsp”.
2. All requests to servlet “/newsPage” have to be passed through filter “FilterLogin”. In this filter I use the term: “if (url.endsWith(“manager”))” or “if (url.endsWith(“spec”))”.
But this term does not work. I may sure in this problem, by using Logger.info (in particular).
Post-method is realized in client, when url "http://localhost:8080/newsPage?role=manager",
by the form-construction in jsp-page:
To make the problem-understanding more easy, I attached the general diagram to my post.