2020-04-27 22:08:07 +02:00
|
|
|
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
|
|
|
pageEncoding="UTF-8"%>
|
2020-04-24 16:44:53 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
<head>
|
2020-04-27 22:08:07 +02:00
|
|
|
<meta charset="UTF-8">
|
|
|
|
<title>Login</title>
|
|
|
|
<link rel="stylesheet"
|
|
|
|
href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
|
|
|
|
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
|
|
|
|
crossorigin="anonymous">
|
|
|
|
<link rel="stylesheet" href="css/stile.css">
|
2020-04-24 16:44:53 +02:00
|
|
|
</head>
|
2020-04-27 22:08:07 +02:00
|
|
|
<body style="background-size: 100%">
|
|
|
|
|
|
|
|
<h2>Login</h2>
|
|
|
|
<%
|
|
|
|
String messaggio = (String) request.getAttribute("messaggio");
|
|
|
|
if (messaggio != null) {
|
|
|
|
%>
|
|
|
|
<p><%=messaggio%></p>
|
|
|
|
<%
|
|
|
|
}
|
|
|
|
%>
|
|
|
|
<form action="utente-servlet" method="post" name="modulo">
|
|
|
|
<div>Nickname</div>
|
|
|
|
<input type="text" name="nickname" required><br>
|
|
|
|
<div>Password</div>
|
|
|
|
<input type="password" name="password" required><br>
|
|
|
|
<input type="hidden" name="azione" value="login">
|
|
|
|
<input type="submit" value="Login">
|
|
|
|
</form>
|
|
|
|
<hr>
|
|
|
|
<h2>Registrazione</h2>
|
|
|
|
<form action="utente-servlet" method="post" name="modulo">
|
|
|
|
<div>Nickname</div>
|
|
|
|
<input type="text" name="nickname" required>
|
|
|
|
<div>Password</div>
|
|
|
|
<input type="password" name="password" required>
|
|
|
|
<div>Conferma password</div>
|
|
|
|
<input type="password" name="conferma" required>
|
|
|
|
<input type="hidden" name="azione" value="registrazione"><br><input
|
|
|
|
type="submit" value="Registrati" class="bottone bottone-small">
|
|
|
|
</form>
|
2020-04-24 16:44:53 +02:00
|
|
|
</body>
|
|
|
|
</html>
|