aboutsummaryrefslogtreecommitdiff
path: root/src/main/webapp/pages/adminIndex.jsp
diff options
context:
space:
mode:
authorOgnjen Cirkovic <ciraboxkg@gmail.com>2022-12-22 01:07:57 +0100
committerOgnjen Cirkovic <ciraboxkg@gmail.com>2022-12-22 01:07:57 +0100
commitc2f57deb7c7216cd7b95c7f0fc4885c6350b38f6 (patch)
tree38d4c9a212456276c0efcf90c7fb07668fca17e3 /src/main/webapp/pages/adminIndex.jsp
parent302ac8e5649fc9bb48cb160ac1528d87bfd08a22 (diff)
Napravljene stranice za login i registraciju.I index stranice za user-a i admin-a. Omogucena registracija i login. Klase zadovoljavaju bean standard.
Diffstat (limited to 'src/main/webapp/pages/adminIndex.jsp')
-rw-r--r--src/main/webapp/pages/adminIndex.jsp38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/main/webapp/pages/adminIndex.jsp b/src/main/webapp/pages/adminIndex.jsp
new file mode 100644
index 0000000..e4225e2
--- /dev/null
+++ b/src/main/webapp/pages/adminIndex.jsp
@@ -0,0 +1,38 @@
+<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
+ pageEncoding="ISO-8859-1"%>
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="ISO-8859-1">
+<title>Admin</title>
+</head>
+<body>
+
+<h1>Registracija novog admina</h1>
+<form method="post" action="registerAdmin.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("Username vec postoji");
+ %>
+ </p>
+ <p style="color:green;">
+ <%
+ if(request.getParameter("id")!=null &&request.getParameter("id").equals("-2") )
+ out.print("Uspesna registracija");
+ %>
+ </p>
+ <button type="submit">Registruj admina</button>
+</form>
+<h1>
+</h1>
+
+
+
+
+</body>
+</html> \ No newline at end of file