Create a simple Login application and secure pages with Java Servlet Filter. Java Servlet/Jsp Tutorials. 1- Why is security used? In this lesson, I will detail the usage of a Servlet Filter to keep secret Java Web application..