JSP Projects

JSP Project

An Example of Login Page
Previous Home Next


Following Example consider for simple login page with username and password.


        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>R4R TECH SOFT</title>
        <h1>An Example of Login Page</h1>

        <form action="index.jsp" method="post">
                    <td>User Name</td>
                    <td><input type="text" name="username"></td>
                    <td><input type="password" name="password"></td>

                        <input type="submit" value="Submit">&nbsp;
                        <input type="reset">

                    String userName = request.getParameter("username");
                    String password = request.getParameter("password");


Previous Home Next