Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%@ page language="java" contentType="text/html; charset=windows-1255" pageEncoding="windows-1255"%>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
- <!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=windows-1255">
- <link rel="stylesheet" type="text/css" href="Style.css">
- <title>Checker</title>
- </head>
- <body>
- <c:choose>
- <c:when test="${param.password=='123'}">
- <%session.setAttribute("user", request.getParameter("uname")); %>
- <%session.setMaxInactiveInterval(-1); %>
- <%response.sendRedirect("loginSuccess.jsp"); %>
- </c:when>
- <c:otherwise>
- <%response.sendRedirect("loginFail.jsp"); %>
- </c:otherwise>
- </c:choose>
- </body>
- </html>
Add Comment
Please, Sign In to add comment