Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
- <title>Insert title here</title>
- </head>
- <body>
- Login
- <form>
- <input type="text" name="login">
- <input type="password" name="password">
- </form>
- <form>
- <input type="submit" name="submit">
- <!-- Declaração de variaveis -->
- <%!String logdefault = "admin";
- String passdefault = "admin"; %>
- <% String login = request.getParameter("login");
- String password = request.getParameter("password"); %>
- <!-- FIM declaração de variaveis -->
- <%
- if(login.equals("admin") && password.equals("admin")){
- response.sendRedirect("index.jsp");
- System.out.println("deu certo");
- }else{
- System.out.println("algo deu errado");
- }
- %>
- </form>
- </body>
- </html>
Add Comment
Please, Sign In to add comment