blob: 2086f222747a852f8b5c63eeccb6115583ac7c7d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
<%@page import="java.rmi.Naming"%>
<%@page import="pokemon.IService"%>
<%@page import="java.util.ArrayList"%>
<%@page import="models.Monster"%>
<%@page import="models.User"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@page import="database.Database"%>
<!DOCTYPE html>
<% %>
<html>
<head>
<meta charset="ISO-8859-1">
<title>Login</title>
</head>
<body>
<h1>Login</h1>
<form method="post" action="pages/login.jsp">
<input type="text" name="username"> Korisnicko ime
<br>
<input type="password" name="password">Sifra
<br>
<p style="color:red;">
<%
if(request.getParameter("id")!=null &&request.getParameter("id").equals("-1") )
out.print("Pogresan login");
%>
</p>
<p style="color:green;">
<%
if(request.getParameter("id")!=null &&request.getParameter("id").equals("-2") )
out.print("Uspesna registracija");
%>
</p>
<button type="submit">Prijava</button>
</form>
<br>
<a href="pages/registerPage.jsp">
<button>Registracija</button>
</a>
<br><br>
<h1>Lista korisnika</h1>
</body>
</html>
|