Guest User

login.jsp

a guest
Oct 26th, 2018
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 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>Login Page</title>
  9. </head>
  10.  
  11. <body>
  12. <form action="Login" method="POST">
  13. <center>
  14. <p>
  15. <table>
  16. <tr>
  17. <td align="right">Username: </td>
  18. <td><input type="text" id="user" name="user"></td>
  19. </tr>
  20.  
  21. <tr>
  22. <td align="right">Password: </td>
  23. <td><input type="password" id="pass" name="pass"></td>
  24. </tr>
  25.  
  26. <tr>
  27. <td colspan ="2" align="right"><input type="submit" id="btn" name="login" value="login"></td>
  28. </tr>
  29. </table>
  30.  
  31. <p>Are you new? Register <a href="register.jsp">here.</a></p>
  32.  
  33. </p>
  34. </center>
  35. </form>
  36.  
  37. <c:if test ="${loginerror == 'yes'}">
  38. Invalid username and password
  39. </c:if>
  40.  
  41. </body>
  42. </html>
Add Comment
Please, Sign In to add comment