Skip to content

Instantly share code, notes, and snippets.

@yasakbulut
Last active August 29, 2015 14:05
Show Gist options
  • Select an option

  • Save yasakbulut/de9de7be0ad7402b818c to your computer and use it in GitHub Desktop.

Select an option

Save yasakbulut/de9de7be0ad7402b818c to your computer and use it in GitHub Desktop.

Revisions

  1. yasakbulut revised this gist Aug 14, 2014. 1 changed file with 6 additions and 0 deletions.
    6 changes: 6 additions & 0 deletions login.jsp
    Original file line number Diff line number Diff line change
    @@ -1,12 +1,18 @@
    <%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Blog - Login</title>
    </head>
    <body>
    <c:if test="${ not empty loginFailed }">
    <div class="error">
    Login failed. Check your credentials and try again.
    </div>
    </c:if>
    <div>
    <form action="./login" method="POST">
    <label for="username_input">Username:</label>
  2. yasakbulut created this gist Aug 14, 2014.
    22 changes: 22 additions & 0 deletions login.jsp
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    <%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>Blog - Login</title>
    </head>
    <body>
    <div>
    <form action="./login" method="POST">
    <label for="username_input">Username:</label>
    <input type="text" name="username" id="username_input">
    <br>
    <label for="password_input">Password:</label>
    <input type="password" name="password" id="password_input">
    <br>
    <button type="submit">Login</button>
    </form>
    </div>
    </body>
    </html>