Advertisement
Guest User

login.jsp

a guest
Dec 9th, 2018
307
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
  2. pageEncoding="ISO-8859-1"%>
  3. <%@ taglib prefix="c" uri = "http://java.sun.com/jsp/jstl/core" %>
  4. <!DOCTYPE html>
  5. <html>
  6. <head>
  7. <meta charset="ISO-8859-1">
  8. <title>Log In</title>
  9. </head>
  10. <style>
  11.  
  12. .bg
  13. {
  14. background-color: white;
  15. }
  16.  
  17. .login
  18. {
  19. background-color: lightgrey;
  20. width:360px;
  21. margin:50px auto;
  22. font:"Century Gothic";
  23. border-radius:10px;
  24. border:2px solid #ccc;
  25. padding:10px 40px 25px;
  26. margin-top:70px;
  27. }
  28.  
  29. .table
  30. {
  31. border-radius:10px;
  32. border:2px solid #333;
  33. border-collapse: collapse;
  34. width: 25%;
  35.  
  36. }
  37. th
  38. {
  39. text-align: center;
  40. padding: 8px;
  41. }
  42. td
  43. {
  44.  
  45. background-color: grey;
  46.  
  47. padding: 8px;
  48. }
  49.  
  50. tr:nth-child
  51. {
  52. background-color: #f2f2f2
  53. }
  54.  
  55. th
  56. {
  57. background-color: lightgrey;
  58. color: black;
  59. }
  60.  
  61. .header
  62. {
  63. background-color: grey;
  64. padding: 10px;
  65. text-align: center;
  66. font-size: 25px;
  67. color: white;
  68. }
  69.  
  70. </style>
  71.  
  72. <body>
  73.  
  74. <div class = "header">
  75. Awesome To-Do List
  76. </div>
  77.  
  78. <div class="login">
  79. <h1 align="center"> </h1>
  80. <form action="Login" method="POST">
  81. <table class="table" align="center">
  82. <tbody>
  83. <tr>
  84. <td>Username:</td>
  85. <td><input type="text" name="username"></td>
  86. </tr>
  87. <tr>
  88. <td>Password:</td>
  89. <td> <input type="password" name="password"></td>
  90. </tr>
  91. <tr>
  92. <td> </td>
  93. <td><input type="submit" value="Login" ></td>
  94. </tr>
  95. <tr>
  96. <td colspan="2">
  97. Are you new? Register <a href="register.jsp"> here</a>
  98. </td>
  99. </tr>
  100. </tbody>
  101. </table>
  102. </form>
  103. <c:if test="${loginerror == 'yes' }">
  104. <center>
  105. <br>
  106. Invalid Username and Password
  107. </center>
  108. </c:if>
  109. </div>
  110. </body>
  111. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement