Dlaczego nie zapisuje mi sesji?
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Index</title>
</head>
<body>
<%
String login = "ss";
%>
<form action="strona.jsp" method="post">
<label>Login: <input type="text" id="login" name="login" required="required"/></label><br /><br />
<label>Hasło: <input type="password" id="password" name="haslo" required="required"/></label><br /><br />
<input type="submit" value="Zaloguj się" />
</form>
<%
session.setAttribute(login,"login");
%>
</body>
</html>