GameNCode

Login Check JSP

Jan 8th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. <%@ page language="java" contentType="text/html; charset=windows-1255" pageEncoding="windows-1255"%>
  2. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=windows-1255">
  7. <link rel="stylesheet" type="text/css" href="Style.css">
  8. <title>Checker</title>
  9. </head>
  10. <body>
  11. <c:choose>
  12. <c:when test="${param.password=='123'}">
  13. <%session.setAttribute("user", request.getParameter("uname")); %>
  14. <%session.setMaxInactiveInterval(-1); %>
  15. <%response.sendRedirect("loginSuccess.jsp"); %>
  16.  
  17. </c:when>
  18. <c:otherwise>
  19. <%response.sendRedirect("loginFail.jsp"); %>
  20. </c:otherwise>
  21. </c:choose>
  22.  
  23. </body>
  24. </html>
Add Comment
Please, Sign In to add comment