However, if the user visits a protected page, it will redirect to a login page. In this lesson, I will detail the usage of a Servlet Filter to keep secret Java Web .