Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1"%>
- <!DOCTYPE html>
- <html>
- <head>
- <%@ include file="header.html" %>
- </head>
- <body>
- <% HttpSession s = request.getSession();
- if((boolean)s.getAttribute("bibliotekar")==true) {%>
- <%@ include file="navbar.html" %>
- <%}else {%>
- <%@ include file="navbarU.html" %>
- <%}
- if(s.getAttribute("email")==null)
- {
- response.sendRedirect("login.jsp");
- System.out.println("Ulogovan! izlog||"+s.getAttribute("email"));
- return;
- }
- String email = (String)s.getAttribute("email");
- boolean isBibliotekar = (Boolean)s.getAttribute("bibliotekar");
- String poruka;
- if(isBibliotekar==true)
- {
- poruka="Ulogovan kao bibliotekar.";
- }
- else
- poruka="Ulogovan kao korisnik";
- %>
- <div class="container" style="width:70%; text-align:center; margin-top:100px;">
- <h1 style="font-size: 3.0rem;">Dobrodosli <%= s.getAttribute("email") %> u nasu biblioteku.</h1>
- <h2>Bla:<%= poruka %></h2>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement