Advertisement
Guest User

login.jsp

a guest
Oct 30th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.06 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.  
  5. <!DOCTYPE html>
  6. <html>
  7. <head>
  8. <title>Awesome to-do list - Login</title>
  9.  
  10. <style>
  11. input[type=submit] {
  12. background-color: white;
  13. color: black;
  14. padding: 2px 10px;
  15. text-align: center;
  16. text-decoration: none;
  17. display: inline-block;
  18. margin: 4px 2px;
  19. cursor: pointer;
  20. background-color: white;
  21. border: 2px solid #555555;
  22. font-face: Palatino Linotype;
  23. font-size: 20px;
  24. }
  25.  
  26. input[type=text], [type=password] {
  27. width: 100%;
  28. padding: 7px 25px;
  29. margin: 8px 0;
  30. display: inline-block;
  31. border: 1px solid #ccc;
  32. border-radius: 4px;
  33. box-sizing: border-box;
  34. font-face: Palatino Linotype;
  35. }
  36.  
  37. table {
  38. font-family: Palatino Linotype;
  39. font-size: 20px;
  40. }
  41. </style>
  42.  
  43. </head>
  44. <body bgcolor="LightCoral">
  45. <h1 style="background-color:AntiqueWhite;" align="center"><font size="15" face="MV Boli">Awesome To-Do List</font></h1>
  46. <p align="center" ><font size="25px" face="MV Boli">Log In</font></p>
  47.  
  48. <form method="POST" action="Login">
  49. <table width="26%" align="center" cellpadding="5" >
  50. <tr>
  51. <td><b>Username : </b></td>
  52. <td><input type="text" name="username"></td>
  53. </tr>
  54. <tr>
  55. <td><b>Password : </b></td>
  56. <td><input type="password" name="password"></td>
  57. </tr>
  58. <tr>
  59. <td colspan="2" align="right"><input type="submit" value="Login"/></td>
  60. </tr>
  61. <tr>
  62. <td colspan="2" align="center">Are you new here? Register <a href="register.jsp">here</a></td>
  63. </tr>
  64. <tr>
  65. <td colspan="2" align="center"><c:if test="${loginerror == 'yes' }">
  66. <b><font color="red">!! Invalid username and password !!</font></b>
  67. </c:if>
  68. </td>
  69. </tr>
  70. </table>
  71. </form>
  72.  
  73.  
  74.  
  75. <img src="C:\Users\Acer_User\Documents\CSC584 Eclipse + Wildfly\CSC584 Eclipse + Wildfly\wildfly-14.0.1.Final\standalone\deployments\awesome-to-do-list.war\images\bt21.gif" height="250px">
  76. </body>
  77. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement