You can use
servlet to set a session attribute of a request say "login" to true or false by using the password check mehtod you created. Every inner
jsp page should get the login attribute and check whether it is true or false. if the login attribute is false or null redirect the page to login page of your application.