To authenticate with the container, you can create a
JSP page with a form that has an action set to "j_security_check," the textfield, "j_username," and the password field "j_password." Then, set up your deployment descriptor to forward to this page when logging in is required. Finally, set up the appropriate url
patterns that you want security to apply to.