forked from marg-o/brigate
46 lines
1.4 KiB
Plaintext
46 lines
1.4 KiB
Plaintext
<%@ page language="java" contentType="text/html; charset=UTF-8"
|
|
pageEncoding="UTF-8"%>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<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">
|
|
</head>
|
|
<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>
|
|
</body>
|
|
</html> |