mcddewitt 0 Newbie Poster

Hello I am learning JSP authentication and am having issues. I think my code for this simple test looks pretty good but everytime I try to login I get my login error page:


<!-- Define security roles -->

    <!-- Restrict access to all files in the /admin folder -->
            <web-resource-name>Protected Area</web-resource-name>
        <!-- Authorize the programmer and service roles -->


    <!-- Use form-based authentication -->

Login Page:

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Login Page</title>
        <h1>Please Login:</h1>

        <form action = "j_security_check" method = "post">
            <table cellspacing="5" border="0">
                    <td align = "right">Username:</td>
                    <td><input type="text" name="j_username"</td>
                    <td align = "right">Password:</td>
                    <td><input type="password" name="j_password"</td>
                   <td><input type="submit" value="Submit"></td>




    <role rolename="manager" />
    <user username="admin" password="admin" roles="manager"/>

    <role rolename="programmer" />
    <user username="admin" password="admin" roles="programmer"/>

    <role rolename="administrator" />
    <user username="admin" password="admin" roles="administrator"/>


Please note I did try to login into the TomCat manager page and it wouldnt take the admin/admin. I am wondering if I messed something up in my tomcat-users.xml or screwed something else up???